class SG_EXPORT osg::Registry

Registry is a singleton factory which stores the Objects types available at runtime for loading, and any Object reader or writers which are linked in at runtime for reading non-native file formats.

Public Methods

[more] ~Registry()
[more]static Registry* instance()
[more]void addPrototype(Object* obj)
[more]void removePrototype(Object* obj)
[more]void addReaderWriter(ReaderWriter* rw)
[more]void removeReaderWriter(ReaderWriter* rw)
[more]std::string createLibraryNameForFile(const std::string& fileName)
create the platform specific library name associated with file
[more]std::string createLibraryNameForExt(const std::string& ext)
create the platform specific library name associated with file extension
[more]bool loadLibrary(const std::string& fileName)
find the library in the SG_LIBRARY_PATH and load it
[more]bool closeLibrary(const std::string& fileName)
close the attached library with specified name
[more]Object* readObject(Input& fr)
[more]Object* readObject(const std::string& fileName)
[more]bool writeObject(Object& obj, const std::string& fileName)
[more]Image* readImage(Input& fr)
[more]Image* readImage(const std::string& fileName)
[more]bool writeImage(Image& obj, const std::string& fileName)
[more]Node* readNode(Input& fr)
[more]Node* readNode(const std::string& fileName)
[more]bool writeNode(Node& node, const std::string& fileName)


Documentation

Registry is a singleton factory which stores the Objects types available at runtime for loading, and any Object reader or writers which are linked in at runtime for reading non-native file formats.

The RegisterObjectProxy defined in Object.h can be used to automatically register at runtime a Object with the Registry.

The RegisterReaderWriterProxy defined in ReaderWriter.h can be used to automatically register at runtime a reader/writer with the Registry.

o ~Registry()

ostatic Registry* instance()

ovoid addPrototype(Object* obj)

ovoid removePrototype(Object* obj)

ovoid addReaderWriter(ReaderWriter* rw)

ovoid removeReaderWriter(ReaderWriter* rw)

ostd::string createLibraryNameForFile(const std::string& fileName)
create the platform specific library name associated with file

ostd::string createLibraryNameForExt(const std::string& ext)
create the platform specific library name associated with file extension

obool loadLibrary(const std::string& fileName)
find the library in the SG_LIBRARY_PATH and load it

obool closeLibrary(const std::string& fileName)
close the attached library with specified name

oObject* readObject(Input& fr)

oObject* readObject(const std::string& fileName)

obool writeObject(Object& obj, const std::string& fileName)

oImage* readImage(Input& fr)

oImage* readImage(const std::string& fileName)

obool writeImage(Image& obj, const std::string& fileName)

oNode* readNode(Input& fr)

oNode* readNode(const std::string& fileName)

obool writeNode(Node& node, const std::string& fileName)


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.