OSoLWriter Class Reference

Take an OSOption object and write a string that validates against the OSoL schema. More...

#include <OSoLWriter.h>

Collaboration diagram for OSoLWriter:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 OSoLWriter ()
 Default constructor.
 ~OSoLWriter ()
 Class destructor.
std::string writeOSoL (OSOption *theosoption)
 create an osol string from an OSOption object

Public Attributes

bool m_bWhiteSpace
 m_bWhiteSpace is set to true if we write white space in the file

Private Attributes

const OSOptionm_OSOption
 m_OSOption is an object in the class OSOption

Detailed Description

Take an OSOption object and write a string that validates against the OSoL schema.

Definition at line 31 of file OSoLWriter.h.


Constructor & Destructor Documentation

OSoLWriter::OSoLWriter (  ) 

Default constructor.

Definition at line 34 of file OSoLWriter.cpp.

OSoLWriter::~OSoLWriter (  ) 

Class destructor.

Definition at line 37 of file OSoLWriter.cpp.


Member Function Documentation

std::string OSoLWriter::writeOSoL ( OSOption theosoption  ) 

create an osol string from an OSOption object

Parameters:
theosoption is a pointer to an OSOption object
Returns:
a string with the OSOption data that validates against the OSoL schema.

Put the <general> element

Put the <system> element

Put the <service> element

Put the <job> element

Put the <optimization> element

Definition at line 51 of file OSoLWriter.cpp.

References GeneralOption::contact, OtherOption::description, OSOption::general, GeneralOption::instanceLocation, GeneralOption::instanceName, GeneralOption::jobID, GeneralOption::license, InstanceLocationOption::locationType, m_OSOption, SystemOption::minDiskSpace, OtherOption::name, OtherOptions::numberOfOtherOptions, os_dtoa_format(), OS_SCHEMA_VERSION, OtherOptions::other, GeneralOption::otherOptions, GeneralOption::password, GeneralOption::serviceName, GeneralOption::serviceURI, GeneralOption::solverToInvoke, OSOption::system, ContactOption::transportType, MinDiskSpace::unit, GeneralOption::userName, MinDiskSpace::value, OtherOption::value, ContactOption::value, and InstanceLocationOption::value.

Referenced by kill(), knock(), retrieve(), and send().


Member Data Documentation

const OSOption* OSoLWriter::m_OSOption [private]

m_OSOption is an object in the class OSOption

Definition at line 36 of file OSoLWriter.h.

Referenced by writeOSoL().

bool OSoLWriter::m_bWhiteSpace

m_bWhiteSpace is set to true if we write white space in the file

Definition at line 62 of file OSoLWriter.h.


The documentation for this class was generated from the following files:
Generated on Sun Jan 2 03:06:37 2011 by  doxygen 1.4.7