16 #ifndef SURGSIM_FRAMEWORK_ASSET_H 17 #define SURGSIM_FRAMEWORK_ASSET_H 26 class ApplicationData;
80 #endif // SURGSIM_FRAMEWORK_ASSET_H void serializeFileName(SurgSim::Framework::Accessible *accessible)
Derived classes (which also inherit from SurgSim::Framework::Accessible) should call this function wi...
Definition: Asset.cpp:57
Definition: DriveElementFromInputBehavior.cpp:27
This class is used to facilitate file loading.
Definition: Asset.h:33
Enable searching for files in a given list of paths, give access to the current directory and wrap bo...
Definition: ApplicationData.h:39
friend AssetTest
Definition: Asset.h:35
std::string getFileName() const
Return the name of file loaded by this class.
Definition: Asset.cpp:52
void load(const std::string &fileName, const SurgSim::Framework::ApplicationData &data)
Load a file with given name using 'data' as look up path(s).
Definition: Asset.cpp:36
string(TOUPPER ${DEVICE}DEVICE_UPPER_CASE) option(BUILD_DEVICE_ $
Definition: CMakeLists.txt:35
virtual bool doLoad(const std::string &filePath)=0
Derived classes will overwrite this method to do actual loading.
Asset()
Constructor.
Definition: Asset.cpp:28
std::string m_fileName
Name of the file to be loaded.
Definition: Asset.h:74
virtual ~Asset()
Destructor.
Definition: Asset.cpp:32
Mixin class for enabling a property system on OSS classes, the instance still needs to initialize pro...
Definition: Accessible.h:36