15#ifndef OSGDB_INPUTSTREAM
16#define OSGDB_INPUTSTREAM
48 for (
unsigned int i=0; i<fields.size(); ++i )
66 typedef std::map< unsigned int, osg::ref_ptr<osg::Array> >
ArrayMap;
67 typedef std::map< unsigned int, osg::ref_ptr<osg::Object> >
IdentifierMap;
80 void setFileVersion(
const std::string& d,
int v ) { _domainVersionMap[d] = v; }
83 bool isBinary()
const {
return _in->isBinary(); }
145 { ptr = readObjectOfType<T>();
return *
this; }
148 bool matchString(
const std::string& str ) {
return _in->matchString(str); }
151 void readCharArray(
char* s,
unsigned int size ) { _in->readCharArray(s, size); }
152 void readComponentArray(
char* s,
unsigned int numElements,
unsigned int numComponentsPerElements,
unsigned int componentSizeInBytes) { _in->readComponentArray( s, numElements, numComponentsPerElements, componentSizeInBytes); }
155 unsigned int readSize() {
unsigned int size; *
this>>size;
return size; }
166 T* ptr =
dynamic_cast<T*
>(obj.
get());
167 if (ptr) {
return ptr; }
179 T* ptr =
dynamic_cast<T*
>(obj.
get());
180 if (ptr) {
return ptr; }
197 inline void throwException(
const std::string& msg );
206 inline void checkStream();
240 if (
_in->isFailed() )
Definition BoundingBox:34
Definition BoundingSphere:35
A plane class. It can be used to represent an infinite plane.
Definition Plane:34
T * get() const
Definition ref_ptr:117
#define OSGDB_EXPORT
Definition osgDB/Export:39