22 #ifdef GENOM_SERIALIZATION
23 #include <boost/archive/binary_iarchive.hpp>
24 #include <boost/archive/binary_oarchive.hpp>
25 #include <boost/serialization/base_object.hpp>
26 #include <boost/serialization/export.hpp>
27 #endif //GENOM_SERIALIZATION
34 #ifdef GENOM_SERIALIZATION
36 #endif //GENOM_SERIALIZATION
56 create(newScalarPort);
57 newScalarPort->setName(inName);
58 newScalarPort->setDirection(inDirection);
59 newScalarPort->setOriginalName(inOriginalName);
60 if(inParentCollection) {
61 inParentCollection->addChild(newScalarPort);
63 inViewPtr->addPort(newScalarPort);
87 if(inNet->getSize() != getSize()) {
102 return newConnection;
127 #ifdef GENOM_SERIALIZATION
128 template <
class Archive>
void ScalarPort::serialize(Archive& ar,
unsigned int) {
129 ar & boost::serialization::base_object<Port>(*this);
130 ar & boost::serialization::base_object<
135 template void ScalarPort::serialize<boost::archive::binary_iarchive>(
136 boost::archive::binary_iarchive& ar,
const unsigned int);
138 template void ScalarPort::serialize<boost::archive::binary_oarchive>(
139 boost::archive::binary_oarchive& ar,
const unsigned int);
141 #endif //GENOM_SERIALIZATION
virtual Connection connect(const NetSharedPtr &inNet)=0
virtual ScalarPortSharedPtr newScalarPortPtr(const std::string &inName, const EPortDirection &inDirection, const ViewSharedPtr &inViewPtr, const PortBundleSharedPtr &inParentCollection=PortBundleSharedPtr(), const std::string &inOriginalName=std::string())
A single object with no child objects.
boost::shared_ptr< ScalarPort > ScalarPortSharedPtr
void disconnectPortFromNet(const PortSharedPtr &inPort)
boost::shared_ptr< PortBundle > PortBundleSharedPtr
std::list< NetSharedPtr >::iterator Connection
virtual Connection connect(const NetSharedPtr &inNet)
void runVisitor(_Tp &inoutVisited, BaseVisitor &inoutVisitor)
virtual void disconnect()
void connectPortToNet(const PortSharedPtr &inPort)
The Error object thrown by different methods of EdifOM.
boost::shared_ptr< Net > NetSharedPtr
A base class for Visitor.
Represents a standalone port.
void saveContextData(const std::string &inName, const boost::any &inSource)
Interface for an EDIF port object.
boost::shared_ptr< View > ViewSharedPtr
virtual void accept(BaseVisitor &inoutVisitor)
void setCurrentLocation(const std::string &inFunction, const std::string &inFile, uint32_t inLine)