Added better handling of writeNode operations that arn't successful.
This commit is contained in:
@@ -164,6 +164,7 @@ class OSGDB_EXPORT ReaderWriter : public osg::Object
|
||||
osg::Node* takeNode();
|
||||
osgDB::Archive* takeArchive();
|
||||
|
||||
std::string& message() { return _message; }
|
||||
const std::string& message() const { return _message; }
|
||||
|
||||
ReadStatus status() const { return _status; }
|
||||
@@ -197,6 +198,7 @@ class OSGDB_EXPORT ReaderWriter : public osg::Object
|
||||
WriteResult(const WriteResult& rr):_status(rr._status),_message(rr._message) {}
|
||||
WriteResult& operator = (const WriteResult& rr) { if (this==&rr) return *this; _status=rr._status; _message=rr._message; return *this; }
|
||||
|
||||
std::string& message() { return _message; }
|
||||
const std::string& message() const { return _message; }
|
||||
|
||||
WriteStatus status() const { return _status; }
|
||||
|
||||
@@ -96,10 +96,12 @@ class OSGDB_EXPORT Registry : public osg::Referenced
|
||||
/** create the platform specific library name associated with nodekit library name.*/
|
||||
std::string createLibraryNameForNodeKit(const std::string& name);
|
||||
|
||||
/** find the library in the SG_LIBRARY_PATH and load it.*/
|
||||
/** find the library in the OSG_LIBRARY_PATH and load it.*/
|
||||
bool loadLibrary(const std::string& fileName);
|
||||
|
||||
/** close the attached library with specified name.*/
|
||||
bool closeLibrary(const std::string& fileName);
|
||||
|
||||
/** close all libraries.*/
|
||||
void closeAllLibraries();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user