]> git.mxchange.org Git - simgear.git/blobdiff - simgear/io/sg_file.hxx
Fix a build order problem.
[simgear.git] / simgear / io / sg_file.hxx
index 994cc27564364240e1b4de5c9a3c06e94d28d580..00d47143dc6ef47fc534e03082aec5dc208bfbda 100644 (file)
@@ -52,11 +52,11 @@ class SGFile : public SGIOChannel {
 
 public:
 
-    SGFile();
+    SGFile( const string& file );
     ~SGFile();
 
     // open the file based on specified direction
-    bool open( SGProtocolDir dir );
+    bool open( const SGProtocolDir dir );
 
     // read a block of data of specified size
     int read( char *buf, int length );
@@ -65,16 +65,15 @@ public:
     int readline( char *buf, int length );
 
     // write data to a file
-    int write( char *buf, int length );
+    int write( const char *buf, const int length );
 
     // write null terminated string to a file
-    int writestring( char *str );
+    int writestring( const char *str );
 
     // close file
     bool close();
 
     inline string get_file_name() const { return file_name; }
-    inline void set_file_name( const string& fn ) { file_name = fn; }
 };