16 #ifndef TORC_GENERIC_PROPERTY_HPP
17 #define TORC_GENERIC_PROPERTY_HPP
22 #ifdef GENOM_SERIALIZATION
23 #include <boost/serialization/access.hpp>
24 #endif //GENOM_SERIALIZATION
37 #include <boost/shared_ptr.hpp>
39 namespace torc {
namespace generic {
class BaseVisitor; } }
50 #ifdef GENOM_SERIALIZATION
51 friend class boost::serialization::access;
120 inline const std::
string getOwner() const;
127 void setOwner(const std::
string& inSource);
162 #ifdef GENOM_SERIALIZATION
163 template <
class Archive>
void serialize(Archive& ar,
unsigned int);
164 #endif //GENOM_SERIALIZATION
210 mChildren.applyOnAll(action);
234 newProperty->setName(inName);
235 newProperty->setValue(inValue);
236 newProperty->setUnit(inUnit);
237 newProperty->setOriginalName(inOriginalName);
238 if(inParentProperty) {
239 inParentProperty->addChildProperty(inName, newProperty);
241 inContainer->setProperty(inName, newProperty);
253 #endif // TORC_GENERIC_PROPERTY_HPP
An acyclic inoutVisitor implementation.
void applyOnAllChildren(const _Action &action)
SymTab< std::string, PropertySharedPtr > mChildren
boost::shared_ptr< PropertyContainer > PropertyContainerSharedPtr
virtual void accept(BaseVisitor &inoutVisitor)
const Unit getUnit() const
bool addChildProperty(const std::string &inName, const PropertySharedPtr &inProperty)
void getChildren(std::map< std::string, PropertySharedPtr > &outValues) const
void setValue(const Value &inSource)
The Error object thrown by different methods of EdifOM.
A base class for Visitor.
void setChildren(const std::map< std::string, PropertySharedPtr > &inSource)
void setOwner(const std::string &inSource)
void getValueMap(UserMap &outMap) const
const std::string getOwner() const
void setUnit(const Unit &inSource)
An object that has a name.
boost::shared_ptr< Property > PropertySharedPtr
const Value getValue() const
Represents objects that can be renamed.
VisitorType< Property > Visitor
virtual PropertySharedPtr newPropertyPtr(const std::string &inName, const PropertyContainerSharedPtr &inContainer, const Value &inValue, const Unit &inUnit=eUnitUndefined, const PropertySharedPtr &inParentProperty=PropertySharedPtr(), const std::string &inOriginalName=std::string())
A placeholder for a factory method.
An object that receives an inoutVisitor.
void setCurrentLocation(const std::string &inFunction, const std::string &inFile, uint32_t inLine)