7 #include "fwData/location/Folder.hpp" 8 #include "fwData/Exception.hpp" 10 #include "fwData/location/SingleFile.hpp" 12 #include "fwData/registry/macros.hpp" 40 SingleFile::csptr other = SingleFile::dynamicConstCast(_source);
42 "Unable to copy" + (_source ? _source->getClassname() : std::string(
"<NULL>"))
45 this->
m_path = other->m_path;
52 SingleFile::csptr other = SingleFile::dynamicConstCast(_source);
54 "Unable to copy" + (_source ? _source->getClassname() : std::string(
"<NULL>"))
57 this->
m_path = other->m_path;
62 SingleFile::sptr SingleFile::SingleFileFactory(PathType path)
64 SingleFile::sptr singlefile = SingleFile::New();
65 singlefile->setPath(path);
This class defines a single file location.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
Implements data exception class.
FWDATA_API void cachedDeepCopy(const Object::csptr &_source, DeepCopyCacheType &cache) override
Defines deep copy.
FWDATA_API void shallowCopy(const Object::csptr &_source) override
Defines shallow copy.
FWDATA_API void fieldDeepCopy(const ::fwData::Object::csptr &source)
A deep copy of fields (objects in m_children)
virtual const std::string & getClassname() const override
return full object's classname with its namespace, i.e. fwCore::BaseObject
virtual FWDATA_API ~SingleFile()
Destructor.
FWDATA_API SingleFile(::fwData::Object::Key key)
Constructor.
PathType m_path
file system path
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)
FWDATA_API void setPath(PathType path)
Set file system path.
FWDATA_API PathType getPath() const
Get file system path.