141 rootPtr->setComments(inRoot.getComments());
142 rootPtr->setName(inRoot.getName());
143 rootPtr->setOriginalName(inRoot.getOriginalName());
144 rootPtr->setLevel(inRoot.getLevel());
145 rootPtr->setVersion(inRoot.getVersion());
147 std::vector<StatusSharedPtr> outStatus;
148 inRoot.getStatuses(outStatus);
149 for(std::vector<StatusSharedPtr>::iterator it = outStatus.begin();
150 it != outStatus.end(); ++it) {
152 rootPtr->addStatus(clonedStatus);
155 std::vector<LibrarySharedPtr> libraries;
156 inRoot.getLibraries(libraries);
157 std::vector<LibrarySharedPtr>::iterator libIt = libraries.begin();
158 for(; libIt != libraries.end(); ++libIt) {
160 rootPtr->addLibrary(newLib);
163 std::vector<DesignSharedPtr> outDesigns;
164 inRoot.getDesigns(outDesigns);
165 for(std::vector<DesignSharedPtr>::iterator it = outDesigns.begin();
166 it != outDesigns.end(); ++it) {
168 rootPtr->addDesign(newDesign);
173 e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
boost::shared_ptr< Design > DesignSharedPtr
boost::shared_ptr< _Tp > clone(const boost::shared_ptr< _Tp > &inPointer, const ObjectFactorySharedPtr &inFactory)
boost::shared_ptr< Library > LibrarySharedPtr
ObjectFactorySharedPtr mFactory
boost::shared_ptr< Status > StatusSharedPtr
boost::shared_ptr< Root > RootSharedPtr