The DtVrfNameGenerator class will generate a unique name by object type.
| DtVrfNameGenerator::DtVrfNameGenerator |
( |
| ) |
|
| virtual DtVrfNameGenerator::~DtVrfNameGenerator |
( |
| ) |
|
|
virtual |
| virtual void DtVrfNameGenerator::clear |
( |
| ) |
|
|
virtual |
| virtual DtString DtVrfNameGenerator::nextName |
( |
const DtObjectType & |
| ) |
|
|
virtual |
Returns the next available name given the object type.
| virtual DtString DtVrfNameGenerator::nextNameWithPrefix |
( |
const DtObjectType & |
objectType, |
|
|
const DtString & |
potentialPrefix |
|
) |
| |
|
virtual |
| virtual unsigned int DtVrfNameGenerator::maxNameLengthForType |
( |
const DtObjectType & |
objectType | ) |
const |
|
virtual |
- Returns
- The max allowable length for a object of the specified type. This method looks up the parameters for the object type and returns a value based on the type of network interface specified in the parameters.
| virtual DtString DtVrfNameGenerator::generateUniqueName |
( |
int |
maxLength, |
|
|
const DtString & |
root = "Object" |
|
) |
| |
|
virtual |
Generates a name string which does not belong to any other object in the simulation, and does not exceed the maxLength. The optional root argument will be used as a starting point for the generated name.
| virtual DtString DtVrfNameGenerator::nextNameWithPrefix |
( |
int |
maxLength, |
|
|
const DtString & |
potentialPrefix |
|
) |
| |
|
virtual |
Returns a new unique name given the prefix (stripped of numbers, if there are some at the end) that conforms to the maximum length.
| virtual DtString DtVrfNameGenerator::nextUnorganizedName |
( |
| ) |
|
|
virtual |
Returns the short name and a number. Will return true if this is a valid format of <short name>=""> <number>
Creates a pull range from the given and the new range of numbers.
| virtual void DtVrfNameGenerator::giveBack |
( |
const DtString & |
shortName, |
|
|
int |
number |
|
) |
| |
|
protectedvirtual |
Gives the number back for the short name and does the pull correctly.
| virtual void DtVrfNameGenerator::take |
( |
const DtString & |
shortName, |
|
|
int |
number, |
|
|
bool |
affectDuplicateCount = false |
|
) |
| |
|
protectedvirtual |
Takes the number and removes from pull or does the right thing with next number.
| virtual int DtVrfNameGenerator::getNextNumber |
( |
const DtString & |
| ) |
|
|
protectedvirtual |
Returns the next available number for the root.
| virtual void DtVrfNameGenerator::takeFromRange |
( |
Ranges & |
, |
|
|
int |
number |
|
) |
| const |
|
protectedvirtual |
Takes the number from the range and returns the new range string.
| tbb::recursive_mutex DtVrfNameGenerator::myMutex |
|
protected |
| tbb::atomic<int> DtVrfNameGenerator::myNextUnorganizedName |
|
protected |
| boost::signals2::scoped_connection DtVrfNameGenerator::mySimObjectAddedConnection |
|
protected |
| boost::signals2::scoped_connection DtVrfNameGenerator::mySimObjectDeletedConnection |
|
protected |
| boost::signals2::scoped_connection DtVrfNameGenerator::mySimObjectRenamedConnection |
|
protected |
The documentation for this class was generated from the following file:
- /data/exports/nrhent7-1/nightly/docs/vrForces.vrf5-1-branch/include/vrfobjcore/vrfNameGenerator.h