torc-master
|
Encapsulation of database version information. More...
#include <Versions.hpp>
Public Member Functions | |
const DottedVersion & | getFormat (void) const |
Returns the database format version. More... | |
uint32_t | getBuild (void) const |
Returns the database build number. More... | |
const DottedVersion & | getVendor (void) const |
Returns the vendor data version. More... | |
const string & | getVendorString (void) const |
Returns the database format version string. More... | |
Protected Types | |
typedef std::string | string |
Imported type name. More... | |
typedef boost::uint8_t | uint8_t |
Imported type name. More... | |
typedef boost::uint16_t | uint16_t |
Imported type name. More... | |
typedef boost::uint32_t | uint32_t |
Imported type name. More... | |
typedef torc::common::DottedVersion | DottedVersion |
Imported type name. More... | |
Protected Member Functions | |
size_t | readVersions (DigestStream &inStream, bool inShowVersion=false) |
Read the version information. More... | |
Versions (void) | |
Protected constructor. More... | |
Protected Attributes | |
DottedVersion | mFormat |
The database format version. More... | |
uint32_t | mBuild |
The database build number. More... | |
DottedVersion | mVendor |
The vendor data version. More... | |
string | mVendorString |
The vendor data version string. More... | |
Private Types | |
typedef std::basic_istream< char > | istream |
Internal typedef of istream;. More... | |
typedef std::basic_ostream< char > | ostream |
Internal typedef of ostream;. More... | |
Private Member Functions | |
istream & | mIn (void) |
Returns the database console input stream. More... | |
ostream & | mOut (void) |
Returns the database console output stream. More... | |
ostream & | mErr (void) |
Returns the database console error stream. More... | |
ostream & | mLog (void) |
Returns the database console log stream. More... | |
istream & | getConsoleIn (void) |
Returns the database console input stream. More... | |
ostream & | getConsoleOut (void) |
Returns the database console output stream. More... | |
ostream & | getConsoleErr (void) |
Returns the database console error stream. More... | |
ostream & | getConsoleLog (void) |
Returns the database console log stream. More... | |
void | setConsoleIn (istream &inStream) |
Sets the database console input stream. More... | |
void | setConsoleOut (ostream &inStream) |
Sets the database console output stream. More... | |
void | setConsoleErr (ostream &inStream) |
Sets the database console error stream. More... | |
void | setConsoleLog (ostream &inStream) |
Sets the database console log stream. More... | |
virtual void | setConsoleStreams (istream &inIn, ostream &inOut, ostream &inErr, ostream &inLog) |
Sets all of the database console streams. More... | |
Private Attributes | |
istream * | mInPtr |
Pointer to the database console input stream. More... | |
ostream * | mOutPtr |
ostream * | mErrPtr |
ostream * | mLogPtr |
Static Private Attributes | |
static DDBConsoleStreams | sDefaultConsoleStreams |
static DDBConsoleStreams | sNullConsoleStreams |
Friends | |
class | DDB |
The database has access to our protected functions. More... | |
class | torc::architecture::architecture::DigestStreamUnitTest |
The DigestStream unit test has access to our protected functions. More... | |
Encapsulation of database version information.
The format version information determines if and how DDB should read the database. The vendor vesion information indicates the version of the vendor tools that the database was generated from.
Definition at line 37 of file Versions.hpp.
|
protected |
Imported type name.
Definition at line 49 of file Versions.hpp.
|
inherited |
Internal typedef of istream;.
Definition at line 41 of file DDBConsoleStreams.hpp.
|
inherited |
Internal typedef of ostream;.
Definition at line 43 of file DDBConsoleStreams.hpp.
|
protected |
Imported type name.
Definition at line 45 of file Versions.hpp.
|
protected |
Imported type name.
Definition at line 47 of file Versions.hpp.
|
protected |
Imported type name.
Definition at line 48 of file Versions.hpp.
|
protected |
Imported type name.
Definition at line 46 of file Versions.hpp.
|
inlineprotected |
Protected constructor.
Definition at line 66 of file Versions.hpp.
|
inline |
Returns the database build number.
Definition at line 72 of file Versions.hpp.
|
inlineinherited |
Returns the database console error stream.
Definition at line 69 of file DDBConsoleStreams.hpp.
|
inlineinherited |
Returns the database console input stream.
Definition at line 65 of file DDBConsoleStreams.hpp.
|
inlineinherited |
Returns the database console log stream.
Definition at line 71 of file DDBConsoleStreams.hpp.
|
inlineinherited |
Returns the database console output stream.
Definition at line 67 of file DDBConsoleStreams.hpp.
|
inline |
Returns the database format version.
Definition at line 70 of file Versions.hpp.
|
inline |
Returns the vendor data version.
Definition at line 74 of file Versions.hpp.
|
inline |
Returns the database format version string.
Definition at line 76 of file Versions.hpp.
|
inlineinherited |
Returns the database console error stream.
Definition at line 61 of file DDBConsoleStreams.hpp.
|
inlineinherited |
Returns the database console input stream.
Definition at line 57 of file DDBConsoleStreams.hpp.
|
inlineinherited |
Returns the database console log stream.
Definition at line 63 of file DDBConsoleStreams.hpp.
|
inlineinherited |
Returns the database console output stream.
Definition at line 59 of file DDBConsoleStreams.hpp.
|
protected |
Read the version information.
Definition at line 25 of file Versions.cpp.
|
inlineinherited |
Sets the database console error stream.
Definition at line 77 of file DDBConsoleStreams.hpp.
|
inlineinherited |
Sets the database console input stream.
Definition at line 73 of file DDBConsoleStreams.hpp.
|
inlineinherited |
Sets the database console log stream.
Definition at line 79 of file DDBConsoleStreams.hpp.
|
inlineinherited |
Sets the database console output stream.
Definition at line 75 of file DDBConsoleStreams.hpp.
|
inlinevirtualinherited |
Sets all of the database console streams.
inIn | The console input stream. |
inOut | The console output stream. |
inErr | The console error stream. |
inLog | The console log stream. |
Reimplemented in torc::architecture::DDB.
Definition at line 85 of file DDBConsoleStreams.hpp.
|
friend |
The database has access to our protected functions.
Definition at line 40 of file Versions.hpp.
|
friend |
The DigestStream unit test has access to our protected functions.
Definition at line 42 of file Versions.hpp.
|
protected |
The database build number.
Definition at line 56 of file Versions.hpp.
|
protectedinherited |
Definition at line 96 of file DDBConsoleStreams.hpp.
|
protected |
The database format version.
Definition at line 54 of file Versions.hpp.
|
protectedinherited |
Pointer to the database console input stream.
Definition at line 94 of file DDBConsoleStreams.hpp.
|
protectedinherited |
Definition at line 97 of file DDBConsoleStreams.hpp.
|
protectedinherited |
Definition at line 95 of file DDBConsoleStreams.hpp.
|
protected |
The vendor data version.
Definition at line 58 of file Versions.hpp.
|
protected |
The vendor data version string.
Definition at line 60 of file Versions.hpp.
|
staticinherited |
Definition at line 45 of file DDBConsoleStreams.hpp.
|
staticinherited |
Definition at line 46 of file DDBConsoleStreams.hpp.