#include <Config.hpp>
Public Member Functions | |
Config (void) | |
Null constructor required by collections. | |
Config (const string &inName, const string &inValue) | |
Standard constructor. | |
const string & | getValue (void) const |
Return the configuration value. | |
SequenceIndex | getOrder (void) const |
Return the configuration sequence index. | |
void | setValue (const string &inValue) |
Set the configuration value. | |
void | setName (const string &inName) |
Sets the object name. | |
bool | operator== (const Config &rhs) const |
Comparison operator. | |
Protected Types | |
typedef std::string | string |
Imported type name. | |
Protected Member Functions | |
void | setOrder (SequenceIndex inOrder) |
Set the sequence index for this configuration. | |
Config (const string &inName, const string &inValue, SequenceIndex inOrder) | |
Protected copy constructor. This constructor allows the caller to specify the sequence index. | |
Protected Attributes | |
string | mValue |
The configuration setting value. | |
SequenceIndex | mOrder |
The sequence in which the configuration was created. | |
Static Protected Attributes | |
static const char * | sConfigDefaultName = "" |
Default configuration name. | |
static const char * | sConfigDefaultValue = "#OFF" |
Default configuration value. | |
Friends | |
class | ConfigMap |
The ConfigMap class has direct access to our internals. | |
class | torc::physical::physical::ConfigUnitTest |
Our unit test has direct access to our internals. |
Config elements typically live in a ConfigMap, and by inheritance, in Design, Module, Instance, and Net objects. Within a ConfigMap, a setting name acts as a key that points to a Config, together forming the standard {setting:name:value} triplet.
Definition at line 39 of file Config.hpp.
typedef std::string torc::physical::Config::string [protected] |
Imported type name.
Reimplemented from torc::physical::Named.
Reimplemented in torc::physical::Routethrough.
Definition at line 48 of file Config.hpp.
torc::physical::Config::Config | ( | const string & | inName, | |
const string & | inValue, | |||
SequenceIndex | inOrder | |||
) | [inline, protected] |
Protected copy constructor. This constructor allows the caller to specify the sequence index.
inName | The configuration name. The is a user-specified name, not a setting name. | |
inValue | The configuration value. | |
inOrder | The sequence index. |
Definition at line 72 of file Config.hpp.
torc::physical::Config::Config | ( | void | ) | [inline] |
Standard constructor.
inName | The configuration name. The is a user-specified name, not a setting name. | |
inValue | The configuration value. |
Definition at line 82 of file Config.hpp.
void torc::physical::Config::setOrder | ( | SequenceIndex | inOrder | ) | [inline, protected] |
Set the sequence index for this configuration.
inOrder | The new sequence index. |
Definition at line 65 of file Config.hpp.
const string& torc::physical::Config::getValue | ( | void | ) | const [inline] |
SequenceIndex torc::physical::Config::getOrder | ( | void | ) | const [inline] |
void torc::physical::Config::setValue | ( | const string & | inValue | ) | [inline] |
void torc::physical::Config::setName | ( | const string & | inName | ) | [inline] |
Sets the object name.
Config names can be changed arbitrarily, but other Named subclasses require more complex semantics to prevent name collisions.
Definition at line 94 of file Config.hpp.
bool torc::physical::Config::operator== | ( | const Config & | rhs | ) | const [inline] |
Comparison operator.
Definition at line 99 of file Config.hpp.
friend class ConfigMap [friend] |
friend class torc::physical::physical::ConfigUnitTest [friend] |
const char * torc::physical::Config::sConfigDefaultName = "" [static, protected] |
const char * torc::physical::Config::sConfigDefaultValue = "#OFF" [static, protected] |
string torc::physical::Config::mValue [protected] |
The configuration setting value.
Definition at line 57 of file Config.hpp.
SequenceIndex torc::physical::Config::mOrder [protected] |
The sequence in which the configuration was created.
This is used by the XDL exporter to preserve the original order in cases where multiple configurations exist for the same setting name.
Definition at line 61 of file Config.hpp.