CommandLine Class Reference

#include </home/scilab/compilation_chain/sci_checkOut/scilab/modules/history_manager/src/cpp/CommandLine.hxx>


Public Member Functions

 CommandLine (void)
 CommandLine (std::string line_)
 ~CommandLine ()
std::string get (void)
BOOL set (std::string line_)

Private Attributes

std::string Command


Detailed Description

Definition at line 25 of file CommandLine.hxx.


Constructor & Destructor Documentation

CommandLine::CommandLine ( void   ) 

Constructor CommandLine

Definition at line 16 of file CommandLine.cpp.

00017 {
00018 }

CommandLine::CommandLine ( std::string  line_  ) 

Constructor CommandLine

Parameters:
line_ : a string

Definition at line 20 of file CommandLine.cpp.

References Command.

00021 {
00022         this->Command = line_ ;
00023 }

CommandLine::~CommandLine (  ) 

Destructor CommandLine

Definition at line 25 of file CommandLine.cpp.

References Command.

00026 {
00027         Command.erase();
00028 }


Member Function Documentation

std::string CommandLine::get ( void   ) 

get command line

Returns:
a string

Definition at line 30 of file CommandLine.cpp.

References Command.

00031 {
00032         return Command ;
00033 }

BOOL CommandLine::set ( std::string  line_  ) 

set command line

Parameters:
line_ : a string
Returns:
TRUE or FALSE

Definition at line 35 of file CommandLine.cpp.

References Command, FALSE, and TRUE.

00036 {
00037         if (!line_.empty())
00038         {
00039                 this->Command = line_ ;
00040                 return TRUE;
00041         }
00042         return FALSE;
00043 }


Field Documentation

std::string CommandLine::Command [private]

Definition at line 60 of file CommandLine.hxx.

Referenced by CommandLine(), get(), set(), and ~CommandLine().


The documentation for this class was generated from the following files:

Generated on Tue Sep 9 18:23:00 2008 for Scilab [trunk] by  doxygen 1.5.5