20 #ifdef GENOM_SERIALIZATION
21 #include <boost/archive/binary_iarchive.hpp>
22 #include <boost/archive/binary_oarchive.hpp>
23 #include <boost/serialization/base_object.hpp>
24 #include <boost/serialization/export.hpp>
25 #endif //GENOM_SERIALIZATION
28 #ifdef GENOM_SERIALIZATION
30 #endif //GENOM_SERIALIZATION
45 create(newSingleParameter);
46 newSingleParameter->setName(inName);
47 newSingleParameter->setValue(inValue);
48 newSingleParameter->setUnit(inUnit);
49 newSingleParameter->setOriginalName(inOriginalName);
50 return newSingleParameter;
70 #ifdef GENOM_SERIALIZATION
71 template <
class Archive>
void SingleParameter::serialize(Archive& ar,
unsigned int) {
72 ar & boost::serialization::base_object< Parameter >(*this);
73 ar & boost::serialization::base_object<
78 template void SingleParameter::serialize<boost::archive::binary_oarchive>(
79 boost::archive::binary_oarchive& ar,
const unsigned int);
81 template void SingleParameter::serialize<boost::archive::binary_iarchive>(
82 boost::archive::binary_iarchive& ar,
const unsigned int);
84 #endif //GENOM_SERIALIZATION
A single object with no child objects.
void runVisitor(_Tp &inoutVisited, BaseVisitor &inoutVisitor)
Represents a parameter object in EDIF.
The Error object thrown by different methods of EdifOM.
A base class for Visitor.
boost::shared_ptr< SingleParameter > SingleParameterSharedPtr
virtual ~SingleParameter()
virtual void accept(BaseVisitor &inoutVisitor)
virtual SingleParameterSharedPtr newSingleParameterPtr(const std::string &inName, const Value &inValue, const Unit &inUnit=eUnitUndefined, const std::string &inOriginalName=std::string())
void setCurrentLocation(const std::string &inFunction, const std::string &inFile, uint32_t inLine)