7 #ifndef __FWDATA_LOCATION_ILOCATION_HPP__ 8 #define __FWDATA_LOCATION_ILOCATION_HPP__ 10 #include "fwData/Object.hpp" 11 #include "fwData/config.hpp" 13 #include <boost/filesystem/path.hpp> 33 typedef ::boost::filesystem::path PathType;
34 typedef std::vector<PathType> VectPathType;
49 template<
class LOCATION,
class RW >
53 typename LOCATION::sptr location;
54 location = LOCATION::dynamicCast( rw->getLocation() );
57 location = LOCATION::New();
58 rw->setLocation(location);
64 template<
class LOCATION,
class RW >
67 return (LOCATION::dynamicCast( rw->getLocation() )) ?
true :
false;
#define fwCoreNonInstanciableClassDefinitionsMacro(_classinfo_)
Generate common code for Non Instanciable classes (Interfaces, Abstract classes, ...)
LOCATION::sptr getLocation(RW *rw)
Get reader or writer location.
bool have(RW *rw)
test if a Reader/writer (ie a class implementing get/setLocation) have an specialized LOCATION ...
#define SLM_ASSERT(message, cond)
work like 'assert' from 'cassert', with in addition a message logged by spylog (with FATAL loglevel) ...
Abstract class to define a location ( fileSystem, directory(IES) etc.... )
Base class for each data object.
Contains the representation of the data objects used in the framework.