My Project: openb3dlib.mod/openb3d/src/file.h Source File

My Project

file.h
Go to the documentation of this file.
1 /*
2 * file.h
3 * iminib3d
4 *
5 * Created by Simon Harrison.
6 * Copyright Si Design. All rights reserved.
7 *
8 */
9
10 #ifndef FILE_H
11 #define FILE_H
12
13 //#import <UIKit/UIKit.h>
14
15 #include <string>
16 #include <stdio.h>
17 using namespace std;
18
19 class File{
20
21 public:
22
23 File(){};
24
25 ~File(){
26 //if(pFile) delete pFile;
27 }
28
29 FILE * pFile;
30
31 // static string DocsDir();
32 static string ResourceFilePath(string filename);
33 static File* ReadResourceFile(string filename);
34 static File* ReadFile(string filename);
35 static File* WriteFile(string filename);
36 void CloseFile();
37 char ReadByte();
38 short ReadShort();
39 int ReadInt();
40 long ReadLong();
41 float ReadFloat();
42 string ReadString();
43 string ReadLine();
44 void WriteByte(char c);
45 void WriteShort(short s);
46 void WriteInt(int i);
47 void WriteLong(long l);
48 void WriteFloat(float f);
49 void WriteString(string s);
50 void WriteLine(string s);
51
52 void SeekFile(int pos);
53 int FilePos();
54
55 int Eof();
56
57 };
58
59 #endif
File
Definition: file.h:19
File::File
File()
Definition: file.h:23
std
File::~File
~File()
Definition: file.h:25
File::pFile
FILE * pFile
Definition: file.h:29