Public Member Functions | Private Attributes | List of all members
OSCommandLineReader Class Reference

The OSCommandLineReader Class. More...

#include <OSCommandLineReader.h>

Collaboration diagram for OSCommandLineReader:
Collaboration graph
[legend]

Public Member Functions

 OSCommandLineReader ()
 OSCommandLineReader class constructor. More...
 
 ~OSCommandLineReader ()
 OSCommandLineReader class destructor. More...
 
OSCommandLinereadCommandLine (const std::string &osss) throw (ErrorClass)
 Get an OSCommandLine object from a command line string. More...
 
OSCommandLineparseString (const std::string &osss) throw (ErrorClass)
 Parse a string and store it into an OSCommandLine object. More...
 

Private Attributes

OSCommandLinem_oscommandline
 m_oscommandline is the OSCommandLine object returned by the OSCommandLineReader More...
 

Detailed Description

The OSCommandLineReader Class.

Author
Horand Gassmann, Jun Ma, Kipp Martin
Remarks
A class for parsing a command line string and creating an OSCommandLine object from the string. This method can be used in OSSolverService, OSAmplClient, as well as the interactive shell

Definition at line 39 of file OSCommandLineReader.h.

Constructor & Destructor Documentation

OSCommandLineReader::OSCommandLineReader ( )

OSCommandLineReader class constructor.

Parameters
osssis the command line to be parsed

Definition at line 38 of file OSCommandLineReader.cpp.

OSCommandLineReader::~OSCommandLineReader ( )

OSCommandLineReader class destructor.

Definition at line 101 of file OSCommandLineReader.cpp.

Member Function Documentation

OSCommandLine * OSCommandLineReader::readCommandLine ( const std::string &  osss)
throw (ErrorClass
)

Get an OSCommandLine object from a command line string.

Parameters
osssa command line string.
Returns
the OSCommandLine object corresponding to the command line string.
Remarks
Calls method parseString once and if a configFile item is found calls method parseString two more times (with the config file contents and again with the original command line)

Definition at line 43 of file OSCommandLineReader.cpp.

OSCommandLine * OSCommandLineReader::parseString ( const std::string &  osss)
throw (ErrorClass
)

Parse a string and store it into an OSCommandLine object.

Parameters
osssa command line string.
Returns
the OSCommandLine object corresponding to the command line string.

Definition at line 76 of file OSCommandLineReader.cpp.

Member Data Documentation

OSCommandLine* OSCommandLineReader::m_oscommandline
private

m_oscommandline is the OSCommandLine object returned by the OSCommandLineReader

Definition at line 84 of file OSCommandLineReader.h.


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