torc-master
|
Configuration. A {name:value} pair. More...
#include <Config.hpp>
Public Member Functions | |
Config (void) | |
Null constructor required by collections. More... | |
Config (const string &inName, const string &inValue) | |
Standard constructor. More... | |
const string & | getValue (void) const |
Return the configuration value. More... | |
SequenceIndex | getOrder (void) const |
Return the configuration sequence index. More... | |
void | setValue (const string &inValue) |
Set the configuration value. More... | |
void | setName (const string &inName) |
Sets the object name. More... | |
bool | operator== (const Config &rhs) const |
Comparison operator. More... | |
const string & | getName (void) const |
Returns the object name. More... | |
bool | operator== (const Named &rhs) const |
Equality operator. More... | |
Protected Types | |
typedef std::string | string |
Imported type name. More... | |
Protected Member Functions | |
void | setOrder (SequenceIndex inOrder) |
Set the sequence index for this configuration. More... | |
Config (const string &inName, const string &inValue, SequenceIndex inOrder) | |
Protected copy constructor. This constructor allows the caller to specify the sequence index. More... | |
Protected Attributes | |
string | mValue |
The configuration setting value. More... | |
SequenceIndex | mOrder |
The sequence in which the configuration was created. More... | |
string | mName |
The name of the object. More... | |
Static Protected Attributes | |
static const char * | sConfigDefaultName = "" |
Default configuration name. More... | |
static const char * | sConfigDefaultValue = "#OFF" |
Default configuration value. More... | |
Friends | |
class | ConfigMap |
The ConfigMap class has direct access to our internals. More... | |
class | torc::physical::physical::ConfigUnitTest |
Our unit test has direct access to our internals. More... | |
Configuration. A {name:value} pair.
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.
|
protected |
Imported type name.
Definition at line 48 of file Config.hpp.
|
inlineprotected |
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.
|
inline |
Null constructor required by collections.
Definition at line 77 of file Config.hpp.
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.
|
inlineinherited |
|
inline |
Return the configuration sequence index.
Definition at line 88 of file Config.hpp.
|
inline |
Return the configuration value.
Definition at line 86 of file Config.hpp.
|
inlineinherited |
|
inline |
Comparison operator.
Definition at line 99 of file Config.hpp.
|
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.
|
inlineprotected |
Set the sequence index for this configuration.
inOrder | The new sequence index. |
Definition at line 65 of file Config.hpp.
|
inline |
Set the configuration value.
Definition at line 90 of file Config.hpp.
|
friend |
The ConfigMap class has direct access to our internals.
Definition at line 42 of file Config.hpp.
|
friend |
Our unit test has direct access to our internals.
Definition at line 44 of file Config.hpp.
|
protectedinherited |
|
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.
|
protected |
The configuration setting value.
Definition at line 57 of file Config.hpp.
|
staticprotected |
Default configuration name.
Definition at line 51 of file Config.hpp.
|
staticprotected |
Default configuration value.
Definition at line 53 of file Config.hpp.