#include <Version.h>
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) |
Version * | clone () |
bool | isMostRecent (string table) |
Static Public Member Functions | |
static void | clearVersionVector (vector< Version * > v) |
static string | incrementName (string n) |
Version::Version | ( | int | maj, | |
int | min | |||
) |
Constructor
maj | MajorVersionId | |
min | MinorVersionId |
Version::Version | ( | int | maj, | |
int | min, | |||
string | n, | |||
bool | l | |||
) |
Constructor
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
maj | MajorVersionId | |
min | MinorVersionId | |
d | Creation time of the version | |
n | Name of the version | |
l | The version is locked/unlocked |
void Version::clearVersionVector | ( | vector< Version * > | v | ) | [static] |
Delete all pointers contained in the vector and clear the vector
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
n | The initial 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
table | The name of the table to check |
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)