Base class for all loader-plugins.
More...
#include <ObjLoader/mlObjLoaderFrame.h>
Base class for all loader-plugins.
Definition at line 41 of file mlObjLoaderFrame.h.
◆ olSpecializedLoader()
ml::olSpecializedLoader::olSpecializedLoader |
( |
| ) |
|
|
protected |
◆ ~olSpecializedLoader()
virtual ml::olSpecializedLoader::~olSpecializedLoader |
( |
| ) |
|
|
virtual |
◆ getName()
virtual const std::string ml::olSpecializedLoader::getName |
( |
| ) |
const |
|
pure virtual |
Returns a string with the name of the loader (e.g. ObjDump)
◆ isValidHeader()
virtual bool ml::olSpecializedLoader::isValidHeader |
( |
const char * |
header, |
|
|
const size_t |
length |
|
) |
| |
|
pure virtual |
This member is called with a pointer (header) to the first length bytes of the file to be loaded.
It returns true if the file type is known an can be interpreted by the loader. Otherwise false is returned and the next loader is called.
◆ miscInfo()
virtual const std::string ml::olSpecializedLoader::miscInfo |
( |
| ) |
|
|
inlinevirtual |
Returns loader-specific information that has been stored in the _miscInfo class member.
Definition at line 106 of file mlObjLoaderFrame.h.
◆ readDoc()
virtual void ml::olSpecializedLoader::readDoc |
( |
const std::string & |
infoFile, |
|
|
omObjectContainer & |
oc, |
|
|
bool |
accumulate |
|
) |
| |
|
virtual |
readDoc() is called with the filename of the file to be loaded and a reference to the object container.
The member is responsible for the object container. If it fails for whatever reason, the object container must be left in a consistent state. If the accumulate parameter is true, the main loader has not cleared the object container. Inherited classes must call its parent implementation of readDoc() in front.
◆ resetErrors()
void ml::olSpecializedLoader::resetErrors |
( |
| ) |
|
|
inline |
◆ sawErrors()
bool ml::olSpecializedLoader::sawErrors |
( |
| ) |
const |
|
inline |
◆ setSuppressErrorLog()
void ml::olSpecializedLoader::setSuppressErrorLog |
( |
bool |
trueOrFalse | ) |
|
|
inline |
◆ suppressErrorLog()
bool ml::olSpecializedLoader::suppressErrorLog |
( |
| ) |
const |
|
inline |
◆ olFullPath
◆ _infoFileDirectory
std::string ml::olSpecializedLoader::_infoFileDirectory |
|
protected |
◆ _miscInfo
std::string ml::olSpecializedLoader::_miscInfo |
|
protected |
Loader-specific misc.
information (e.g. the name of the application that wrote the info file) This information must be provided by the specialized loader.
Definition at line 69 of file mlObjLoaderFrame.h.
◆ _sawErrors
bool ml::olSpecializedLoader::_sawErrors |
|
protected |
◆ _suppressErrorLog
bool ml::olSpecializedLoader::_suppressErrorLog |
|
protected |
The documentation for this class was generated from the following file: