torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
torc::generic::Root Class Reference

Root of the EDIF Object Model. More...

#include <Root.hpp>

+ Inheritance diagram for torc::generic::Root:
+ Collaboration diagram for torc::generic::Root:

Data Structures

class  Factory
 

Public Types

typedef VisitorType< RootVisitor
 
typedef std::string Name
 
typedef Root Type
 
typedef boost::shared_ptr< TypePointer
 
typedef boost::weak_ptr< TypeWeakPointer
 

Public Member Functions

virtual void addLibrary (const LibrarySharedPtr &inLibrary) throw (Error)
 
virtual void removeLibrary (const std::string &inName) throw (Error)
 
virtual LibrarySharedPtr findLibrary (const std::string &inName)
 
virtual void getLibraries (std::vector< LibrarySharedPtr > &outLibraries)
 
template<typename _Action >
void applyOnAllLibraries (const _Action &action) throw (Error)
 
virtual void addDesign (const DesignSharedPtr &inDesign) throw (Error)
 
virtual void removeDesign (const std::string &inName) throw (Error)
 
virtual DesignSharedPtr findDesign (const std::string &inName)
 
virtual void getDesigns (std::vector< DesignSharedPtr > &outDesigns)
 
template<typename _Action >
void applyOnAllDesigns (const _Action &action) throw (Error)
 
virtual void accept (BaseVisitor &inoutVisitor) throw (Error)
 
const EdifVersion getVersion () const
 
void setVersion (const EdifVersion &inSource)
 
const EdifLevel getLevel () const
 
void setLevel (const EdifLevel &inSource)
 
virtual ~Root () throw ()
 
void addComment (const std::string &comment)
 
const std::vector< std::string > & getComments () const
 
void setComments (const std::vector< std::string > &inSource)
 
virtual const std::string getName () const
 
void setName (const std::string &inSource) throw (Error)
 
virtual Name getOriginalName () const
 
virtual void setOriginalName (const Name &inSource)
 
void setWeakThis (const WeakPointer &inWeakThis)
 
Pointer getSharedThis () const
 
void getUserData (std::list< std::string > &outUserData) const
 
void setUserData (const std::list< std::string > &inSource)
 
void addUserData (const std::string &inSource)
 
void getStatuses (std::vector< StatusSharedPtr > &outStatus) const
 
void setStatuses (const std::vector< StatusSharedPtr > &inStatus)
 
void addStatus (const StatusSharedPtr &inStatus) throw (Error)
 
template<typename _Action >
void applyOnAllStatuses (const _Action &action) throw (Error)
 

Protected Member Functions

 Root ()
 

Private Member Functions

 Root (const Root &source)
 
Rootoperator= (const Root &source)
 

Private Attributes

EdifLevel mLevel
 
SymTab< std::string,
LibrarySharedPtr
mLibraries
 
SymTab< std::string,
DesignSharedPtr
mDesignSymTab
 
EdifVersion mVersion
 

Friends

class FactoryType< Root >
 

Detailed Description

Root of the EDIF Object Model.

The Root class represents and EDIF hierarchy. All parsed EDIF files contribute to the growth of the object tree rooted here. At the top level, it provides access to the libraries present in the design.

Note
In case the tree has been programatically created, clients need to decompile this tree, a name has to be given to the tree, otherwise an exception will be generated. This name will become the design name of the decompiled output file. For parser generated trees, the design name of the last file parsed becomes the name of the root. This can obviously be changed by the client, by calling the set_name() method.

Definition at line 66 of file Root.hpp.

Member Typedef Documentation

typedef std::string torc::generic::Renamable::Name
inherited

Definition at line 40 of file generic/Renamable.hpp.

typedef boost::shared_ptr<Type> torc::generic::SelfReferencing< Root >::Pointer
inherited

Definition at line 36 of file SelfReferencing.hpp.

Definition at line 35 of file SelfReferencing.hpp.

Convenience typedef for visiting the root

Definition at line 78 of file Root.hpp.

typedef boost::weak_ptr<Type> torc::generic::SelfReferencing< Root >::WeakPointer
inherited

Definition at line 37 of file SelfReferencing.hpp.

Constructor & Destructor Documentation

torc::generic::Root::~Root ( )
throw (
)
virtual

Definition at line 281 of file Root.cpp.

281  {
282  log("Root destroyed\n");
283 }
void log(const char *fmt,...)
Definition: Log.cpp:89

+ Here is the call graph for this function:

torc::generic::Root::Root ( )
protected

Definition at line 274 of file Root.cpp.

274  : Commentable(), Nameable(), Renamable(), Visitable(), SelfReferencing<Root>(),
276 #ifdef GENOM_SERIALIZATION
277 , mDumpRestoreData(), mDumpedLibraries()
278 #endif //GENOM_SERIALIZATION
279 {}
EdifVersion mVersion
Definition: Root.hpp:330
SymTab< std::string, LibrarySharedPtr > mLibraries
Definition: Root.hpp:328
EdifLevel mLevel
Definition: Root.hpp:327
SymTab< std::string, DesignSharedPtr > mDesignSymTab
Definition: Root.hpp:329
torc::generic::Root::Root ( const Root source)
private

Member Function Documentation

void torc::generic::Root::accept ( BaseVisitor inoutVisitor)
throw (Error
)
virtual

Implements torc::generic::Visitable.

Definition at line 226 of file Root.cpp.

226  {
227  try {
228  runVisitor(*this, inoutVisitor);
229  } catch(Error& e) {
230  e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
231  throw;
232  }
233 }
void runVisitor(_Tp &inoutVisited, BaseVisitor &inoutVisitor)
Definition: VisitorType.hpp:78

+ Here is the call graph for this function:

void torc::generic::Commentable::addComment ( const std::string &  comment)
inherited

Add a comment to the object

Parameters
[in]commentThe comment to add to an existing list of comments

Definition at line 36 of file Commentable.cpp.

36  {
37  mComments.push_back(comment);
38 }
std::vector< std::string > mComments
Definition: Commentable.hpp:77
void torc::generic::Root::addDesign ( const DesignSharedPtr inDesign)
throw (Error
)
virtual

Add a design to the list of designs. If an empty pointer is supplied, it returns without doing anything.

Parameters
[in]inDesignA pointer to a design object.
Exceptions
ErrorDesign could not be added. because design name is empty
  • Id : eMessageIdErrorEmptyItemName
ErrorDesign could not be added. because Library name is already exists
  • Id : eMessageIdErrorItemAlreadyExists

Add a design to the list of designs. If an empty pointer is supplied, it returns without doing anything.

Definition at line 143 of file Root.cpp.

143  {
144  if(!inDesign) {
145  return;
146  }
147  std::string name = inDesign->getName();
148  if(name.empty()) {
149  Error e(eMessageIdErrorEmptyItemName, __FUNCTION__, __FILE__, __LINE__);
150  e.saveContextData("Design name", name);
151  throw e;
152  }
153  if(false == mDesignSymTab.set(name, inDesign)) {
154  Error e(eMessageIdErrorItemAlreadyExists, __FUNCTION__, __FILE__, __LINE__);
155  e.saveContextData("Design name", name);
156  throw e;
157  }
158  inDesign->setParent(getSharedThis());
159  return;
160 }
bool set(const KeyType &inKey, const ValueType &inValue)
Definition: SymTab.hpp:132
std::string string
SymTab< std::string, DesignSharedPtr > mDesignSymTab
Definition: Root.hpp:329

+ Here is the call graph for this function:

void torc::generic::Root::addLibrary ( const LibrarySharedPtr inLibrary)
throw (Error
)
virtual

Add a library to the list of libraries. If an empty pointer is supplied, it returns without doing anything.

Parameters
[in]inLibraryA pointer to a library object.
Exceptions
ErrorLibrary could not be added. because Library name is empty
  • Id : eMessageIdErrorEmptyItemName
  • Context Data
ErrorLibrary could not be added. because Library name is already exists
  • Id : eMessageIdErrorItemAlreadyExists
  • Context Data

Add a library to the list of libraries. If an empty pointer is supplied, it returns without doing anything.

Parameters
[in]inLibraryA pointer to a library object.
Exceptions
ErrorLibrary could not be added. because Library name is empty
ErrorLibrary could not be added. because Library name is already exists

Definition at line 48 of file Root.cpp.

48  {
49  if(!inLibrary) {
50  return;
51  }
52  std::string name = inLibrary->getName();
53  if(name.empty()) {
54  Error e(eMessageIdErrorEmptyItemName, __FUNCTION__, __FILE__, __LINE__);
55  e.saveContextData("Library name", name);
56  throw e;
57  }
58 #ifdef GENOM_SERIALIZATION
59  std::list< std::string >::iterator it = std::find(mDumpedLibraries.begin(),
60  mDumpedLibraries.end(), name);
61  if(it != mDumpedLibraries.end()) {
62  Error e(eMessageIdErrorItemAlreadyExists, __FUNCTION__, __FILE__, __LINE__ );
63  e.saveContextData("Library name", name);
64  throw e;
65  }
66 #endif //GENOM_SERIALIZATION
67  if(false == mLibraries.set(name, inLibrary)) {
68  Error e(eMessageIdErrorItemAlreadyExists, __FUNCTION__, __FILE__, __LINE__);
69  e.saveContextData("Library name", name);
70  throw e;
71  }
72  inLibrary->setParent(getSharedThis());
73  return;
74 }
SymTab< std::string, LibrarySharedPtr > mLibraries
Definition: Root.hpp:328
bool set(const KeyType &inKey, const ValueType &inValue)
Definition: SymTab.hpp:132
std::string string

+ Here is the call graph for this function:

void torc::generic::StatusContainer::addStatus ( const StatusSharedPtr inStatus)
throw (Error
)
inherited

Add a status to the vector of statuses. If an empty pointer is supplied, it returns without doing anything.

Parameters
[in]inStatusA pointer to a status object.
Exceptions
ErrorStatus could not be added.

Add a status to the list of statuses. If an empty pointer is supplied, it returns without doing anything.

Parameters
[in]inStatusA pointer to a status object.
Exceptions
ErrorStatus could not be added.

Definition at line 47 of file StatusContainer.cpp.

47  {
48  mStatuses.push_back(inStatus);
49 }
std::vector< StatusSharedPtr > mStatuses
void torc::generic::UserDataContainer::addUserData ( const std::string &  inSource)
inherited

Add an user data to the list of user data

Parameters
[in]inSourceAn user data as string

Definition at line 34 of file UserDataContainer.cpp.

34  {
35  mUserData.push_back(inSource);
36 }
std::list< std::string > mUserData
template<typename _Action >
void torc::generic::Root::applyOnAllDesigns ( const _Action &  action)
throw (Error
)
inline

Apply action on all Designs.

Parameters
[in]actionAction to be applied

Definition at line 360 of file Root.hpp.

361  {
362  try {
363  mDesignSymTab.applyOnAll(action);
364  } catch(Error& e) {
365  e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
366  throw;
367  }
368 }
void applyOnAll(const _Action &action)
Definition: SymTab.hpp:192
SymTab< std::string, DesignSharedPtr > mDesignSymTab
Definition: Root.hpp:329

+ Here is the call graph for this function:

template<typename _Action >
void torc::generic::Root::applyOnAllLibraries ( const _Action &  action)
throw (Error
)
inline

Apply action on all Libraries.

Parameters
[in]actionAction to be applied
Note
If some libraries are yet to be restored, this method is not thread safe. For non-serializable mode this is thread safe. For dump mode derived classes can write an appropriate thread safe wrapper method that can be accesed using visitors. However, using this method in dump mode should be avoided unless under dire situations, as it will lead to restoration of all libraries under the root.

Apply action on all Libraries.

Parameters
[in]actionAction to be applied

Definition at line 342 of file Root.hpp.

343  {
344  try {
345 #ifdef GENOM_SERIALIZATION
346  restoreAllLibraries();
347 #endif //GENOM_SERIALIZATION
348  mLibraries.applyOnAll(action);
349  } catch(Error& e) {
350  e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
351  throw;
352  }
353 }
SymTab< std::string, LibrarySharedPtr > mLibraries
Definition: Root.hpp:328
void applyOnAll(const _Action &action)
Definition: SymTab.hpp:192

+ Here is the call graph for this function:

template<typename _Action >
void torc::generic::StatusContainer::applyOnAllStatuses ( const _Action &  action)
throw (Error
)
inlineinherited

Apply action on all statuses.

Parameters
[in]actionAction to be applied

Definition at line 95 of file StatusContainer.hpp.

96  {
97  try {
98  std::vector<StatusSharedPtr>::iterator it = mStatuses.begin();
99  for(; it != mStatuses.end(); ++it) {
100  action(*it);
101  }
102  } catch(Error& e) {
103  e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
104  throw;
105  }
106 }
std::vector< StatusSharedPtr > mStatuses

+ Here is the call graph for this function:

DesignSharedPtr torc::generic::Root::findDesign ( const std::string &  inName)
virtual

Find a design by name, in the list of designs.

Parameters
[in]inNameString specifying the name of the design.
Returns
A pointer to the design if found, an empty pointer otherwise.

Find a Design by name, in the list of libraries.

Parameters
[in]inNameString inSource specifying the name of the Design.
Returns
A pointer to the design if found, an empty pointer otherwise.

Definition at line 196 of file Root.cpp.

196  {
197  DesignSharedPtr design;
198  mDesignSymTab.get(inName, design);
199  return design;
200 }
boost::shared_ptr< Design > DesignSharedPtr
bool get(const KeyType &inKey, ValueType &outValue) const
Definition: SymTab.hpp:121
SymTab< std::string, DesignSharedPtr > mDesignSymTab
Definition: Root.hpp:329

+ Here is the call graph for this function:

LibrarySharedPtr torc::generic::Root::findLibrary ( const std::string &  inName)
virtual

Find a library by name, in the list of libraries.

Parameters
[in]inNameString specifying the name of the library.
Returns
A pointer to the libary if found, an empty pointer otherwise.
Note
If some libraries are yet to be restored, this method is not thread safe. For non-serializable mode this is thread safe. For dump mode derived classes can override this to make it thread safe by placing appropriate locks.

Find a library by name, in the list of libraries.

Parameters
[in]inNameString inSource specifying the name of the library.
Returns
A pointer to the libary if found, an empty pointer otherwise.

Definition at line 129 of file Root.cpp.

129  {
130  LibrarySharedPtr library;
131  mLibraries.get(inName, library);
132 #ifdef GENOM_SERIALIZATION
133  if(!library && !mDumpedLibraries.empty()) {
134  library = restoreSingleLibrary(inName);
135  }
136 #endif //GENOM_SERIALIZATION
137  return library;
138 }
SymTab< std::string, LibrarySharedPtr > mLibraries
Definition: Root.hpp:328
boost::shared_ptr< Library > LibrarySharedPtr
bool get(const KeyType &inKey, ValueType &outValue) const
Definition: SymTab.hpp:121

+ Here is the call graph for this function:

const std::vector< std::string > & torc::generic::Commentable::getComments ( ) const
inlineinherited

Get the list of all comments

Returns
A list of all comments on this object

Definition at line 85 of file Commentable.hpp.

85  {
86  return mComments;
87 }
std::vector< std::string > mComments
Definition: Commentable.hpp:77
void torc::generic::Root::getDesigns ( std::vector< DesignSharedPtr > &  outDesigns)
virtual

Get the list of designs.

Parameters
[out]outDesignsList of designs contained in the root

Get the list of designs.

Parameters
[out]outDesignsList of libraries

Definition at line 185 of file Root.cpp.

185  {
186  mDesignSymTab.getValues(outDesigns);
187 }
void getValues(std::vector< ValueType > &outValues) const
Definition: SymTab.hpp:158
SymTab< std::string, DesignSharedPtr > mDesignSymTab
Definition: Root.hpp:329

+ Here is the call graph for this function:

const EdifLevel torc::generic::Root::getLevel ( ) const
inline

The the level of EDIF file.

Returns
The EDIF level for this file

Definition at line 384 of file Root.hpp.

384  {
385  return mLevel;
386 }
EdifLevel mLevel
Definition: Root.hpp:327
void torc::generic::Root::getLibraries ( std::vector< LibrarySharedPtr > &  outLibraries)
virtual

Get the list of libraries.

Parameters
[out]outLibrariesList of libraries contained in the root
Note
If some libraries are yet to be restored, this method is not thread safe. For non-serializable mode this is thread safe. For dump mode derived classes can override this to make it thread safe by placing appropriate locks. In dump mode using this method will lead to restoration of all children.

Get the list of libraries.

Parameters
[out]outLibrariesList of libraries

Definition at line 115 of file Root.cpp.

115  {
116 #ifdef GENOM_SERIALIZATION
117  restoreAllLibraries();
118 #endif //GENOM_SERIALIZATION
119  mLibraries.getValues(outLibraries);
120 }
void getValues(std::vector< ValueType > &outValues) const
Definition: SymTab.hpp:158
SymTab< std::string, LibrarySharedPtr > mLibraries
Definition: Root.hpp:328

+ Here is the call graph for this function:

const std::string torc::generic::Nameable::getName ( void  ) const
inlinevirtualinherited

Get the object name

Returns
Name of the object

Definition at line 89 of file Nameable.hpp.

89  {
90  return mName;
91 }

+ Here is the caller graph for this function:

Renamable::Name torc::generic::Renamable::getOriginalName ( ) const
inlinevirtualinherited

Get the new name provided for the object.

Returns
Name of the object

Definition at line 78 of file generic/Renamable.hpp.

78  {
79  return mOriginalName;
80 }

+ Here is the caller graph for this function:

Pointer torc::generic::SelfReferencing< Root >::getSharedThis ( ) const
inlineinherited

Get a shared pointer to this object. A valid pointer is returned if weakThis was set. Otherwise this returns a NULL pointer. For Vector types, the second scenario is an exception condition and should be treated as such.

Returns
A shared pointer to this object

Get a shared pointer to this object. A valid pointer is returned if weakThis was set. Otherwise this returns a NULL pointer. For Vector types, the second scenario is an exception condition and should be treated as such.

Parameters
[out]ptrSet to a shared pointer to this object
void torc::generic::StatusContainer::getStatuses ( std::vector< StatusSharedPtr > &  outStatus) const
inlineinherited

Get a vector of pointer to Status object

Parameters
[out]outStatusThe vector of pointer to Status object

Definition at line 86 of file StatusContainer.hpp.

86  {
87  outStatus.insert(outStatus.end(), mStatuses.begin(), mStatuses.end());
88 }
std::vector< StatusSharedPtr > mStatuses
void torc::generic::UserDataContainer::getUserData ( std::list< std::string > &  outUserData) const
inlineinherited

Get the list of all userData

Parameters
[out]outUserDataThe list of all userData

Definition at line 78 of file UserDataContainer.hpp.

78  {
79  outUserData.insert(outUserData.end(), mUserData.begin(), mUserData.end());
80  return;
81 }
std::list< std::string > mUserData
const EdifVersion torc::generic::Root::getVersion ( ) const
inline

Get the version of EDIF present in the tree.

Returns
Version of edif

Definition at line 375 of file Root.hpp.

375  {
376  return mVersion;
377 }
EdifVersion mVersion
Definition: Root.hpp:330
Root& torc::generic::Root::operator= ( const Root source)
private
void torc::generic::Root::removeDesign ( const std::string &  inName)
throw (Error
)
virtual

Remove the specified design from the list of designs.

Parameters
inNameName of the object to be delete
Exceptions
ErrorEmpty design name
  • Id : eMessageIdErrorEmptyItemName
Errordesign not preset in collection
  • Id : eMessageIdErrorItemNotFound

Remove the specified Design from the list of libraries. If an empty pointer is passed, it returns without doing anything

Definition at line 166 of file Root.cpp.

166  {
167  if(inName.empty()) {
168  Error e(eMessageIdErrorEmptyItemName, __FUNCTION__, __FILE__, __LINE__);
169  e.saveContextData("Design name", inName);
170  throw e;
171  }
172  if(false == mDesignSymTab.remove(inName)) {
173  Error e(eMessageIdErrorItemNotFound, __FUNCTION__, __FILE__, __LINE__);
174  e.saveContextData("Design name", inName);
175  throw e;
176  }
177  return;
178 }
bool remove(const KeyType &inKey)
Definition: SymTab.hpp:153
SymTab< std::string, DesignSharedPtr > mDesignSymTab
Definition: Root.hpp:329

+ Here is the call graph for this function:

void torc::generic::Root::removeLibrary ( const std::string &  inName)
throw (Error
)
virtual

Remove the specified library from the list of libraries.

Parameters
inNameName of the object to be delete
Exceptions
ErrorEmpty Library name
  • Id : eMessageIdErrorEmptyItemName
  • Context Data
ErrorLibrary not preset in collection
  • Id : eMessageIdErrorItemNotFound
  • Context Data

Remove the specified library from the list of libraries. If an empty pointer is passed, it returns without doing anything

Parameters
inNameName of the object to be delete
Exceptions
ErrorEmpty Library name
ErrorLibrary not preset in collection

Definition at line 85 of file Root.cpp.

85  {
86  if(inName.empty()) {
87  Error e(eMessageIdErrorEmptyItemName, __FUNCTION__, __FILE__, __LINE__);
88  e.saveContextData("Library name", inName);
89  throw e;
90  }
91 #ifdef GENOM_SERIALIZATION
92  std::list< std::string >::iterator it = std::find(mDumpedLibraries.begin(),
93  mDumpedLibraries.end(), inName);
94  if(it == mDumpedLibraries.end()) {
95  Error e(eMessageIdErrorItemNotFound, __FUNCTION__, __FILE__, __LINE__);
96  e.saveContextData("Library name", inName);
97  throw e;
98  } else {
99  mDumpedLibraries.erase(it);
100  }
101 #endif //GENOM_SERIALIZATION
102  if(false == mLibraries.remove(inName)) {
103  Error e(eMessageIdErrorItemNotFound, __FUNCTION__, __FILE__, __LINE__);
104  e.saveContextData("Library name", inName);
105  throw e;
106  }
107  return;
108 }
SymTab< std::string, LibrarySharedPtr > mLibraries
Definition: Root.hpp:328
bool remove(const KeyType &inKey)
Definition: SymTab.hpp:153

+ Here is the call graph for this function:

void torc::generic::Commentable::setComments ( const std::vector< std::string > &  inSource)
inherited

Get the list of all comments

Parameters
[in]inSourceA list of all comments to be set on this object

Definition at line 45 of file Commentable.cpp.

45  {
46  mComments.insert(mComments.end(), inSource.begin(), inSource.end());
47 }
std::vector< std::string > mComments
Definition: Commentable.hpp:77
void torc::generic::Root::setLevel ( const EdifLevel inSource)

Set the EDIF level.

Note
Current parser supports LEVEL_0 edif only.
Parameters
[in]inSourceEdifLevel object

Set the EDIF level.

Note
Current parser supports LEVEL_1 edif only.
Parameters
[in]inSourceEdifLevel object

Definition at line 251 of file Root.cpp.

251  {
252  mLevel = inSource;
253 }
EdifLevel mLevel
Definition: Root.hpp:327
void torc::generic::Nameable::setName ( const std::string &  inSource)
throw (Error
)
inherited

Set a name for this object

Parameters
[in]inSourceName of the object
Exceptions
ErrorCould not set name, because name is empty (Will be used by array members)
  • Id : eMessageIdErrorEmptyItemName
  • Context Data

Set a name for this object

Parameters
[in]inSourceName of the object
Exceptions
ErrorCould not set name, because name is empty (Will be used by array members)

Definition at line 41 of file Nameable.cpp.

41  {
42  if(inSource.empty()) {
43  Error e(eMessageIdErrorEmptyItemName, __FUNCTION__, __FILE__, __LINE__);
44  e.saveContextData("Nameable", inSource);
45  throw e;
46  }
47  mName = inSource;
48 }

+ Here is the call graph for this function:

void torc::generic::Renamable::setOriginalName ( const Name inSource)
virtualinherited

Set the new name provided for the object.

Parameters
[in]inSourceName of the object

Definition at line 35 of file generic/Renamable.cpp.

35  {
36  mOriginalName = inSource;
37 }
void torc::generic::StatusContainer::setStatuses ( const std::vector< StatusSharedPtr > &  inStatus)
inherited

Set a vector of pointer to Status object

Parameters
[in]inStatusThe vector of pointer to Status object

Definition at line 32 of file StatusContainer.cpp.

32  {
33  std::vector<StatusSharedPtr>::const_iterator it = inStatus.begin();
34  for(; it != inStatus.end(); it++) {
35  mStatuses.push_back(*it);
36  }
37 }
std::vector< StatusSharedPtr > mStatuses
void torc::generic::UserDataContainer::setUserData ( const std::list< std::string > &  inSource)
inherited

Set the list of userData

Parameters
[in]inSourceThe list of UserData

Definition at line 26 of file UserDataContainer.cpp.

26  {
27  mUserData.insert(mUserData.end(), inSource.begin(), inSource.end());
28 }
std::list< std::string > mUserData
void torc::generic::Root::setVersion ( const EdifVersion inSource)

Set the version of EDIF being used. This should be 2 0 0 for the current EOM version.

Parameters
[in]inSourceAn object of type EdifVersion.

Definition at line 240 of file Root.cpp.

240  {
241  mVersion = inSource;
242 }
EdifVersion mVersion
Definition: Root.hpp:330
void torc::generic::SelfReferencing< Root >::setWeakThis ( const WeakPointer inWeakThis)
inlineinherited

Set a weak pointer to this object. This will be used later to get a shared pointer to this object from within other member methods if required. This should be called by the Factory creating the object.

Parameters
[in]weakThisA weak pointer to this object

Friends And Related Function Documentation

friend class FactoryType< Root >
friend

Definition at line 72 of file Root.hpp.

Field Documentation

SymTab<std::string, DesignSharedPtr> torc::generic::Root::mDesignSymTab
private

Definition at line 329 of file Root.hpp.

EdifLevel torc::generic::Root::mLevel
private

Definition at line 327 of file Root.hpp.

SymTab<std::string, LibrarySharedPtr> torc::generic::Root::mLibraries
private

Definition at line 328 of file Root.hpp.

EdifVersion torc::generic::Root::mVersion
private

Definition at line 330 of file Root.hpp.


The documentation for this class was generated from the following files: