7 #include "fwData/registry/macros.hpp" 8 #include "fwData/Exception.hpp" 10 #include "fwData/location/Folder.hpp" 33 Folder::sptr Folder::FolderFactory(PathType path,
bool recursive )
35 FwCoreNotUsedMacro(recursive);
36 Folder::sptr folder = Folder::New();
37 folder->setFolder(path);
45 Folder::csptr other = Folder::dynamicConstCast(_source);
47 "Unable to copy" + (_source ? _source->getClassname() : std::string(
"<NULL>"))
57 Folder::csptr other = Folder::dynamicConstCast(_source);
59 "Unable to copy" + (_source ? _source->getClassname() : std::string(
"<NULL>"))
This class defines a folder location.
PathType m_folder
Folder path
FWDATA_API void cachedDeepCopy(const Object::csptr &_source, DeepCopyCacheType &cache) override
Defines deep copy.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
Implements data exception class.
FWDATA_API void shallowCopy(const Object::csptr &_source) override
Defines shallow copy.
virtual const std::string & getClassname() const override
return full object's classname with its namespace, i.e. fwCore::BaseObject
FWDATA_API Folder(::fwData::Object::Key key)
Constructor.
FWDATA_API void fieldDeepCopy(const ::fwData::Object::csptr &source)
A deep copy of fields (objects in m_children)
FWDATA_API void setFolder(PathType folder)
Set folder filesystem path.
bool m_isRecursive
Flag if folder is recursive.
FWDATA_API void setRecursive(bool recursive)
Set the flag if folder location is recursive.
Contains the representation of the data objects used in the framework.
FWDATA_API void fieldShallowCopy(const ::fwData::Object::csptr &source)
A shallow copy of fields (objects in m_children)
virtual FWDATA_API ~Folder()
Destructor.
FWDATA_API bool getRecursive()
Get the flag if folder location is recursive.
FWDATA_API PathType getFolder() const
Get folder filesystem path.