00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef TORC_GENERIC_OM_DESIGN_HPP
00017 #define TORC_GENERIC_OM_DESIGN_HPP
00018
00019 #include "torc/generic/om/Nameable.hpp"
00020 #include "torc/generic/om/Commentable.hpp"
00021 #include "torc/generic/om/ParentedObject.hpp"
00022 #include "torc/generic/om/PropertyContainer.hpp"
00023 #include "torc/generic/om/Renamable.hpp"
00024 #include "torc/generic/om/Root.hpp"
00025 #include "torc/generic/om/SelfReferencing.hpp"
00026 #include "torc/generic/om/SymTab.hpp"
00027 #include "torc/generic/om/Visitable.hpp"
00028 #include "torc/generic/om/VisitorType.hpp"
00029 #include "torc/generic/util/Error.hpp"
00030 #include "torc/generic/om/FactoryType.hpp"
00031 #include "torc/generic/om/UserDataContainer.hpp"
00032 #include "torc/generic/om/StatusContainer.hpp"
00033
00034 namespace torc { namespace generic { class BaseVisitor; } }
00035
00036 namespace torc {
00037
00038 namespace generic {
00039
00040
00041
00042
00043
00044
00045 class Design :
00046 public Nameable,
00047 public Commentable,
00048 public PropertyContainer,
00049 public Renamable,
00050 public Visitable,
00051 public ParentedObject<Root>,
00052 public SelfReferencing<Design>,
00053 public UserDataContainer,
00054 public StatusContainer {
00055
00056 friend class FactoryType<Design>;
00057
00058 public:
00059
00060
00061
00062 typedef VisitorType<Design> Visitor;
00063
00064
00065
00066
00067
00068 class Factory: public FactoryType<Design>
00069 {
00070 public:
00071 using FactoryType<Design>::create;
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083 virtual DesignSharedPtr
00084 newDesignPtr( const std::string &inName,
00085 const RootSharedPtr & inRootPtr,
00086 const std::string &inCellRefName,
00087 const std::string &inLibraryRefName,
00088 const std::string &inOriginalName = std::string() ) throw(Error);
00089 };
00090
00091 virtual void
00092 accept(BaseVisitor & inoutVisitor) throw(Error);
00093
00094
00095
00096
00097
00098
00099 inline const std::string
00100 getCellRefName() const throw();
00101
00102
00103
00104
00105
00106
00107 void
00108 setCellRefName( const std::string & inCellRefName ) throw();
00109
00110
00111
00112
00113
00114
00115 inline const std::string
00116 getLibraryRefName() const throw();
00117
00118
00119
00120
00121
00122
00123 void
00124 setLibraryRefName( const std::string & inLibraryRefName ) throw();
00125
00126 virtual
00127 ~ Design() throw();
00128
00129 protected:
00130 Design();
00131 Design( const std::string & inCellRefName,
00132 const std::string &inLibraryRefName );
00133
00134 private:
00135 Design(const Design & inSource) throw();
00136 Design &
00137 operator=(const Design & inSource ) throw();
00138
00139 private:
00140 std::string mCellRefName;
00141 std::string mLibraryRefName;
00142 };
00143
00144
00145
00146
00147
00148
00149 inline const std::string
00150 Design::getCellRefName() const throw() {
00151 return mCellRefName;
00152 }
00153
00154
00155
00156
00157
00158
00159 inline const std::string
00160 Design::getLibraryRefName() const throw() {
00161 return mLibraryRefName;
00162 }
00163
00164
00165 }
00166
00167 }
00168 #endif // TORC_GENERIC_OM_DESIGN_HPP