OSCommandLineReader Class Reference

The OSCommandLineReader Class. More...

#include <OSCommandLineReader.h>

Collaboration diagram for OSCommandLineReader:
Collaboration graph
[legend]

List of all members.

Public Member Functions

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

Private Attributes

OSCommandLinem_oscommandline
 m_oscommandline is the OSCommandLine object returned by the OSCommandLineReader

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:
osss is the command line to be parsed

Definition at line 39 of file OSCommandLineReader.cpp.

OSCommandLineReader::~OSCommandLineReader (  ) 

OSCommandLineReader class destructor.

Definition at line 102 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:
osss a 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 44 of file OSCommandLineReader.cpp.

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

Parse a string and store it into an OSCommandLine object.

Parameters:
osss a command line string.
Returns:
the OSCommandLine object corresponding to the command line string.

Definition at line 77 of file OSCommandLineReader.cpp.


Member Data Documentation

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:

Generated on 24 Jul 2013 by  doxygen 1.6.1