16 #ifndef TORC_GENERIC_PROPERTYCONTAINER_HPP
17 #define TORC_GENERIC_PROPERTYCONTAINER_HPP
22 #include <boost/shared_ptr.hpp>
23 #ifdef GENOM_SERIALIZATION
24 #include <boost/serialization/access.hpp>
25 #endif //GENOM_SERIALIZATION
28 namespace torc {
namespace generic {
class Property; } }
40 #ifdef GENOM_SERIALIZATION
41 friend class boost::serialization::access;
69 inline void getProperties(std::map<std::string, PropertySharedPtr>& outProperties)
const;
76 void setProperties(
const std::map<std::string, PropertySharedPtr>& inSource);
96 #ifdef GENOM_SERIALIZATION
97 template <
class Archive>
void serialize(Archive& ar,
unsigned int);
98 #endif //GENOM_SERIALIZATION
108 std::map<std::string, PropertySharedPtr>& outProperties)
const {
114 const _Action& action)
throw (
Error) {
116 mProperties.applyOnAll(action);
126 #endif // TORC_GENERIC_PROPERTYCONTAINER_HPP
bool setProperty(const std::string &inName, const PropertySharedPtr &inProperty)
Represents objects that have properties.
void applyOnAllProperties(const _Action &action)
The Error object thrown by different methods of EdifOM.
void getProperties(std::map< std::string, PropertySharedPtr > &outProperties) const
void getValueMap(UserMap &outMap) const
void setProperties(const std::map< std::string, PropertySharedPtr > &inSource)
SymTab< std::string, PropertySharedPtr > mProperties
boost::shared_ptr< Property > PropertySharedPtr
PropertySharedPtr getProperty(const std::string &inName)
PropertyContainer & operator=(const PropertyContainer &source)
void setCurrentLocation(const std::string &inFunction, const std::string &inFile, uint32_t inLine)