GridComputing
Job Management in Grid Computing
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Software Class Reference

Software Class. More...

#include <software.h>

Inheritance diagram for Software:
ISave IPrint

Classes

struct  Hash
 Hash so it is possible to compare 2 VersionData. More...
 
struct  VersionData
 Struct to hold version information (major, minor and revision). More...
 

Public Member Functions

 Software (const std::string &name, int major, int minor, int revision)
 Constructor.
 
bool Save (ByteBuffer &bb) const override
 Save Software data to a ByteBuffer.
 
bool operator== (const Software &other) const
 Equality operator.
 
bool operator!= (const Software &other) const
 Inequality operator.
 
const std::string & GetName () const
 Returns the name of the Software.
 
const VersionDataGetVersion () const
 Returns the VersionData of the Software.
 
void Print (std::ostream &os=std::cout) const override
 Representation of the class in a row form.
 

Static Public Member Functions

static Software Load (ByteBuffer &bb)
 Load Software data from a ByteBuffer.
 
static std::tuple< bool, SoftwareReadFromString (const std::string &name)
 Converts a string into a Software.
 
static void PrintHeader (std::ostream &os=std::cout)
 

Private Member Functions

 Software ()
 

Private Attributes

std::string _name
 Constructor for invalid Software.
 
VersionData _version
 Software version information.
 

Static Private Attributes

static uint _maxNameLength = 0
 The length of the biggest Software name.
 

Detailed Description

Software Class.

Represents a Software that is required by a Job or available in a Machine.

Constructor & Destructor Documentation

Software::Software ( const std::string &  name,
int  major,
int  minor,
int  revision 
)

Constructor.

Software::Software ( )
private

Member Function Documentation

const std::string& Software::GetName ( ) const

Returns the name of the Software.

const VersionData& Software::GetVersion ( ) const

Returns the VersionData of the Software.

Software Software::Load ( ByteBuffer bb)
static

Load Software data from a ByteBuffer.

bool Software::operator!= ( const Software other) const

Inequality operator.

bool Software::operator== ( const Software other) const

Equality operator.

void Software::Print ( std::ostream &  os = std::cout) const
overridevirtual

Representation of the class in a row form.

Parameters
osstream to print to.

Implements IPrint.

void Software::PrintHeader ( std::ostream &  os = std::cout)
static
std::tuple< bool, Software > Software::ReadFromString ( const std::string &  name)
static

Converts a string into a Software.

Parameters
nameThe string to parse.
Returns
A tuple with two values, a boolean and software. If the boolean is true, the method was successful and Software can be used.
bool Software::Save ( ByteBuffer bb) const
overridevirtual

Save Software data to a ByteBuffer.

Implements ISave.

Member Data Documentation

uint Software::_maxNameLength = 0
staticprivate

The length of the biggest Software name.

std::string Software::_name
private

Constructor for invalid Software.

Software name

VersionData Software::_version
private

Software version information.


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