Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 24, 2006, 12:59:44 PM (18 years ago)
Author:
bensch
Message:

some newlines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/terrain/src/lib/util/filesys/binary_file.h

    r9414 r9415  
    2222        }
    2323
    24         ~DataSemantics() 
     24        ~DataSemantics()
    2525        {
    2626                delete[] chunks;
    2727        }
    28        
     28
    2929        int                     totalSize;
    3030        int                     quantifier;
     
    3333        union {
    3434                int                             type;
    35                 DataSemantics   **chunks; 
    36         };     
     35                DataSemantics   **chunks;
     36        };
    3737};
    3838
     
    4040
    4141class BinaryFile : public File {
    42         public:         
     42        public:
    4343                BinaryFile()
    4444                        :       File( "" ),
    4545                                byteorder( NATIVE_BYTEORDER )
    4646                { /* nothing to be done */ }
    47                
     47
    4848                BinaryFile( const std::string& _file )
    49                         :       File( _file ), 
     49                        :       File( _file ),
    5050                                byteorder( NATIVE_BYTEORDER )
    5151                { /* nothing to be done */ }
    5252
    5353                BinaryFile( const BinaryFile& _file )
    54                         :       File( _file.name() ), 
     54                        :       File( _file.name() ),
    5555                                byteorder( _file.getByteorder() )
    5656                { /* nothing to be done */ }
    57                
     57
    5858                /**
    5959                 * Reads a chunk of data based on the _semantics string. The string contains
     
    7070                 */
    7171                void read( const char *_semantics, void* _buf, size_t& _bytesRead );
    72                
     72
    7373                /**
    7474                 * The same as the read above, but with the ability to read multiple
    75                  * chunks once. Very useful if you don't know how many chunks you're 
     75                 * chunks once. Very useful if you don't know how many chunks you're
    7676                 * going to read at compile time.
    7777                 */
    78                 void read( const char *_semantics, int _chunks, 
     78                void read( const char *_semantics, int _chunks,
    7979                        void* _buf, size_t& _bytesRead );
    8080                /**
     
    9393                 * in the middle of reading a file. You're totally on your own.
    9494                 */
    95                 inline void setByteorder( ByteOrder _order ) 
     95                inline void setByteorder( ByteOrder _order )
    9696                { byteorder = _order; }
    97                
     97
    9898                /**
    9999                 * Returns the file's byte-order.
     
    101101                inline ByteOrder getByteorder() const
    102102                { return byteorder; }
    103                
     103
    104104        private:
    105                 pDataSemantics compileSemantics( const char *_semantics );     
     105                pDataSemantics compileSemantics( const char *_semantics );
    106106                ByteOrder               byteorder;
    107107};
Note: See TracChangeset for help on using the changeset viewer.