Main Page | Namespace List | Class Hierarchy | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages

ParametricExecution Class Reference

#include <ParametricExecution.hpp>

List of all members.

Public Member Functions

 ParametricExecution (string execDescriptor)
void dumpSpecs ()
int getNumExecs ()
string getAppId ()
string getAppPreferences ()
string getAppConstraints ()
string getCommandLine (int index)

Private Member Functions

void parseAppId (ifstream &ifs)
void parseCommandLines (ifstream &ifs)
void parseAppPrefs (ifstream &ifs)
void parseAppConstraints (ifstream &ifs)
void filterComments (string &str)

Private Attributes

string appId
string appConstraints
string appPreferences
int numExecs
std::vector< std::string > argList


Detailed Description

ParametricExecution - Represents a parametric execution to the ASCT.

ParametricExecution parses a parametric execution descriptor file, resulting in an object that holds the parametric execution's details.

Note:
TCL == Trader Constraint Language
Author:
Andrei Goldchleger


Constructor & Destructor Documentation

ParametricExecution::ParametricExecution string  execDescriptor  ) 
 

Creates a ParametricExecution object based on a given execution descriptor

Parameters:
execDescriptor - filename of a valid execution descriptor


Member Function Documentation

void ParametricExecution::dumpSpecs  ) 
 

Dump the object's content. For debugging purposes.

void ParametricExecution::filterComments string &  str  )  [private]
 

Removes Unix-like comments ('#') from a string

Parameters:
str - reference to the string to be filtered

string ParametricExecution::getAppConstraints  )  [inline]
 

Returns:
the application's constraints in TCL

string ParametricExecution::getAppId  )  [inline]
 

Returns:
the application's id

string ParametricExecution::getAppPreferences  )  [inline]
 

Returns:
the application's preferences in TCL

string ParametricExecution::getCommandLine int  index  )  [inline]
 

Get one command line of the parametric execution.

Parameters:
index - Index of the desired command line
Returns:
one command line of this parametric execution

int ParametricExecution::getNumExecs  )  [inline]
 

Returns:
the number of executions the be performed

void ParametricExecution::parseAppConstraints ifstream &  ifs  )  [private]
 

Scans a configfile, ignoring comments, and parse application preferences

Parameters:
ifs - reference to a Parametric Execution descriptor file

void ParametricExecution::parseAppId ifstream &  ifs  )  [private]
 

Scans a configfile until a non-comment is found. WARNING: No kind of id validation is performed

Parameters:
ifs - reference to a Parametric Execution descriptor file

void ParametricExecution::parseAppPrefs ifstream &  ifs  )  [private]
 

Scans a configfile, ignoring comments, and parse application preferences

Parameters:
ifs - reference to a Parametric Execution descriptor file

void ParametricExecution::parseCommandLines ifstream &  ifs  )  [private]
 

Scans a configfile, ignoring comments, and parse all comand lines in the config file.

NOTE: A command line is assumed to be on a single line

Parameters:
ifs - reference to a Parametric Execution descriptor file


Member Data Documentation

string ParametricExecution::appConstraints [private]
 

Application Constraints (written in TCL)

string ParametricExecution::appId [private]
 

The parametric application to be executed

string ParametricExecution::appPreferences [private]
 

Application Preferences (written in TCL)

std::vector<std::string> ParametricExecution::argList [private]
 

Vector of the different argument lines of the application

int ParametricExecution::numExecs [private]
 

Number of copies to be launched


The documentation for this class was generated from the following files:
Generated on Mon Sep 6 16:13:19 2004 by doxygen 1.3.3