Show
Ignore:
Timestamp:
03/21/12 18:36:20 (3 years ago)
Author:
robert
Message:

Ran script to remove trailing spaces and tabs

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/include/osgDB/OutputStream

    r12410 r13041  
    4242        } 
    4343    } 
    44      
     44 
    4545    const std::string& getField() const { return _field; } 
    4646    const std::string& getError() const { return _error; } 
    47      
     47 
    4848protected: 
    4949    std::string _field; 
     
    5656    typedef std::map<const osg::Array*, unsigned int> ArrayMap; 
    5757    typedef std::map<const osg::Object*, unsigned int> ObjectMap; 
    58      
     58 
    5959    enum WriteType 
    6060    { 
     
    6464        WRITE_OBJECT 
    6565    }; 
    66      
     66 
    6767    enum WriteImageHint 
    6868    { 
     
    7373        WRITE_EXTERNAL_FILE        /*!< Write Image::data() to disk and use it as external file */ 
    7474    }; 
    75      
     75 
    7676    OutputStream( const osgDB::Options* options ); 
    7777    virtual ~OutputStream(); 
    78      
     78 
    7979    bool isBinary() const { return _out->isBinary(); } 
    8080    const std::string& getSchemaName() const { return _schemaName; } 
    8181    const osgDB::Options* getOptions() const { return _options.get(); } 
    82      
     82 
    8383    void setWriteImageHint( WriteImageHint hint ) { _writeImageHint = hint; } 
    8484    WriteImageHint getWriteImageHint() const { return _writeImageHint; } 
    85      
     85 
    8686    // Serialization related functions 
    8787    OutputStream& operator<<( bool b ) { _out->writeBool(b); return *this; } 
     
    100100    OutputStream& operator<<( std::ostream& (*fn)(std::ostream&) ) { _out->writeStream(fn); return *this; } 
    101101    OutputStream& operator<<( std::ios_base& (*fn)(std::ios_base&) ) { _out->writeBase(fn); return *this; } 
    102      
     102 
    103103    OutputStream& operator<<( const ObjectGLenum& value ) { _out->writeGLenum(value); return *this; } 
    104104    OutputStream& operator<<( const ObjectProperty& prop ) { _out->writeProperty(prop); return *this; } 
    105105    OutputStream& operator<<( const ObjectMark& mark ) { _out->writeMark(mark); return *this; } 
    106      
     106 
    107107    OutputStream& operator<<( const osg::Vec2b& v ); 
    108108    OutputStream& operator<<( const osg::Vec3b& v ); 
     
    122122    OutputStream& operator<<( const osg::Matrixf& mat ); 
    123123    OutputStream& operator<<( const osg::Matrixd& mat ); 
    124      
     124 
    125125    OutputStream& operator<<( const osg::Array* a ) { writeArray(a); return *this; } 
    126126    OutputStream& operator<<( const osg::Image* img ) { writeImage(img); return *this; } 
    127127    OutputStream& operator<<( const osg::PrimitiveSet* p ) { writePrimitiveSet(p); return *this; } 
    128128    OutputStream& operator<<( const osg::Object* obj ) { writeObject(obj); return *this; } 
    129      
     129 
    130130    OutputStream& operator<<( const osg::ref_ptr<osg::Array>& ptr ) { writeArray(ptr.get()); return *this; } 
    131131    OutputStream& operator<<( const osg::ref_ptr<osg::Image>& ptr ) { writeImage(ptr.get()); return *this; } 
    132132    OutputStream& operator<<( const osg::ref_ptr<osg::PrimitiveSet>& ptr ) { writePrimitiveSet(ptr.get()); return *this; } 
    133      
     133 
    134134    template<typename T> OutputStream& operator<<( const osg::ref_ptr<T>& ptr ) 
    135135    { writeObject(ptr.get()); return *this; } 
    136      
     136 
    137137    // Convenient methods for writing 
    138138    void writeWrappedString( const std::string& str ) { _out->writeWrappedString(str); } 
     
    149149    void writeObject( const osg::Object* obj ); 
    150150    void writeObjectFields( const osg::Object* obj ); 
    151      
     151 
    152152    /// set an output iterator, used directly when not using OutputStream with a traditional file releated stream. 
    153153    void setOutputIterator( OutputIterator* oi ) { _out = oi; } 
     
    157157 
    158158    void compress( std::ostream* ostream ); 
    159      
     159 
    160160    // Schema handlers 
    161161    void writeSchema( std::ostream& fout ); 
    162      
     162 
    163163    // Exception handlers 
    164164    inline void throwException( const std::string& msg ); 
    165165    const OutputException* getException() const { return _exception.get(); } 
    166      
     166 
    167167protected: 
    168168    template<typename T> 
    169169    void writeArrayImplementation( const T*, int write_size, unsigned int numInRow=1 ); 
    170      
     170 
    171171    unsigned int findOrCreateArrayID( const osg::Array* array, bool& newID ); 
    172172    unsigned int findOrCreateObjectID( const osg::Object* obj, bool& newID ); 
    173      
     173 
    174174    ArrayMap _arrayMap; 
    175175    ObjectMap _objectMap; 
    176      
     176 
    177177    WriteImageHint _writeImageHint; 
    178178    bool _useSchemaData;