linal::Command Class Reference

#include <Command.h>


Public Member Functions

 Command (const DString &)
 Creates a new Command with the specified words.
DString getCommandWord ()
DString getSecondWord ()
 Returns the second word of this command.
bool isUnknown ()
 Return true if this command was not a known command.
bool hasSecondWord ()
 Determines whether or not a command has a second word, which is usually the expression or parameter of the command.
utils::DArray< DString > & getWords () const
 Returns an ArrayList of the words of the supplied command.
DString getWholeCommandString () const

Static Public Member Functions

static DString getVersion ()
static DString list (LinAl &la)
 Lists the variables stored in the LinAl object.
static LinAldefine (const Command &command, LinAl &la)
 Defines a variable in the LinAl object.
static LinAlremove (const Command &command, LinAl &la)
 Removes a variable from the LinAl object.
static DString print (const Command &command, LinAl &la)
static DString set (const linal::Command &command, LinAl &la)
 Sets a parameter of the program.
static LinAlsave (const Command &command, DString &fileName, utils::DArray< DString > *output, LinAl &la)
 Defines a variable in the LinAl object.
static utils::DArray< DString > * load (DString fileName)
 Loads a file as a variable in the LinAl object.
static utils::DArray< utils::DArray<
linal::LTree > > 
prepareForFunctions (utils::DArray< utils::DArray< DString > > junks, DString *functionName, LinAl &la)

Private Attributes

DString * words
DString * commandWord
DString * secondWord
DArray< DString > * args


Constructor & Destructor Documentation

linal::Command::Command ( const DString &  _words  ) 

Creates a new Command with the specified words.

Parameters:
words String command supplied.


Member Function Documentation

static DString linal::Command::getVersion (  )  [inline, static]

DString linal::Command::getCommandWord (  ) 

DString linal::Command::getSecondWord (  ) 

Returns the second word of this command.

bool linal::Command::isUnknown (  ) 

Return true if this command was not a known command.

bool linal::Command::hasSecondWord (  ) 

Determines whether or not a command has a second word, which is usually the expression or parameter of the command.

DArray< DString > & linal::Command::getWords (  )  const

Returns an ArrayList of the words of the supplied command.

DString linal::Command::getWholeCommandString (  )  const [inline]

DString linal::Command::list ( LinAl la  )  [static]

Lists the variables stored in the LinAl object.

Parameters:
la LinAl Stores variables

LinAl & linal::Command::define ( const Command command,
LinAl la 
) [static]

Defines a variable in the LinAl object.

Parameters:
command Command Command to be Processed
la LinAl Stores variables

LinAl & linal::Command::remove ( const Command command,
LinAl la 
) [static]

Removes a variable from the LinAl object.

Parameters:
command Command Command to be Processed
la LinAl Stores variables

DString linal::Command::print ( const Command command,
LinAl la 
) [static]

DString linal::Command::set ( const linal::Command command,
LinAl la 
) [static]

Sets a parameter of the program.

Parameters:
command Command to be Processed
la LinAl Stores variables

LinAl & linal::Command::save ( const Command command,
DString &  fileName,
utils::DArray< DString > *  output,
LinAl la 
) [static]

Defines a variable in the LinAl object.

Parameters:
command Command Command to be Processed
la LinAl Stores variables

utils::DArray< DString > * linal::Command::load ( DString  fileName  )  [static]

Loads a file as a variable in the LinAl object.

Parameters:
command Command Command to be Processed
la LinAl Stores variables

utils::DArray< utils::DArray< linal::LTree > > linal::Command::prepareForFunctions ( utils::DArray< utils::DArray< DString > >  junks,
DString *  functionName,
LinAl la 
) [static]


Field Documentation

DString* linal::Command::words [private]

DString* linal::Command::commandWord [private]

DString* linal::Command::secondWord [private]

DArray<DString>* linal::Command::args [private]


The documentation for this class was generated from the following files:
Generated on Wed Jan 23 14:53:55 2008 by  doxygen 1.5.2