Version Class Reference

#include <Version.h>

List of all members.

Public Member Functions

 Version (int maj, int min)
 Version (int maj, int min, string n, bool l)
 Version (int maj, int min, string d, string n, bool l)
int getMajorId ()
int getMinorId ()
string getName ()
string getDate ()
bool isLocked ()
void create (string table)
void lock (string table)
Versionclone ()
bool isMostRecent (string table)

Static Public Member Functions

static void clearVersionVector (vector< Version * > v)
static string incrementName (string n)


Detailed Description

Class used to manage versions


Constructor & Destructor Documentation

Version::Version ( int  maj,
int  min 
)

Constructor

Parameters:
maj MajorVersionId
min MinorVersionId

Version::Version ( int  maj,
int  min,
string  n,
bool  l 
)

Constructor

Parameters:
maj MajorVersionId
min MinorVersionId
n Name of the version
l The version is locked/unlocked

Version::Version ( int  maj,
int  min,
string  d,
string  n,
bool  l 
)

Constructor

Parameters:
maj MajorVersionId
min MinorVersionId
d Creation time of the version
n Name of the version
l The version is locked/unlocked


Member Function Documentation

void Version::clearVersionVector ( vector< Version * >  v  )  [static]

Delete all pointers contained in the vector and clear the vector

Parameters:
v The vector to clear

Version * Version::clone (  ) 

Return a clone of the object

void Version::create ( string  table  ) 

Actualy create the version in the database (you should not have to use this method).

string Version::getDate (  ) 

Selector

int Version::getMajorId (  ) 

Selector

int Version::getMinorId (  ) 

Selector

string Version::getName (  ) 

Selector

string Version::incrementName ( string  n  )  [static]

Increment the number at the end of the name ('_X'), add one ('_1') if none is existing

Parameters:
n The initial name
Returns:
The incremented name

bool Version::isLocked (  ) 

Selector

bool Version::isMostRecent ( string  table  ) 

Check if this version is the most up-to-date one in this major line

Parameters:
table The name of the table to check
Returns:
True if there is no following minor version

void Version::lock ( string  table  ) 

Lock this version in the database so that no modification can be made (you should not have to use this method)


The documentation for this class was generated from the following files:
Generated on Tue Feb 28 15:35:34 2012 for ILCConfigurationDB by  doxygen 1.4.7