Subversion Repositories spk

Rev

Rev 119 | Rev 123 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 119 Rev 121
Line 1... Line 1...
1
#ifndef __FILE_IO_H__
1
#ifndef __FILE_IO_H__
2
#define __FILE_IO_H__
2
#define __FILE_IO_H__
-
 
3
 
-
 
4
#pragma warning( push )
-
 
5
#pragma warning( disable : 4251)
3
 
6
 
4
#include "CyString.h"
7
#include "CyString.h"
5
#include "StringList.h"
8
#include "StringList.h"
6
#include "Utils/StringList.h"
9
#include "Utils/StringList.h"
7
#include <fstream>
10
#include <fstream>
Line 31... Line 34...
31
	static bool Remove(const Utils::String &filename);
34
	static bool Remove(const Utils::String &filename);
32
	static bool Exists(const Utils::String &filename);
35
	static bool Exists(const Utils::String &filename);
33
 
36
 
34
public:
37
public:
35
	CFileIO();
38
	CFileIO();
36
	//CFileIO(const Utils::String &sFilename, bool bBinary = true);
39
	CFileIO(const Utils::String &sFilename, bool bBinary);
37
	CFileIO(CyString filename);
40
	CFileIO(CyString filename);
38
	CFileIO(C_File *file);
41
	CFileIO(C_File *file);
39
	~CFileIO ();
42
	~CFileIO ();
40
 
43
 
41
	bool startWrite();
44
	bool startWrite();
Line 80... Line 83...
80
	Utils::CStringList *readLinesStr();
83
	Utils::CStringList *readLinesStr();
81
 
84
 
82
	bool WriteFile(std::vector<CyString> *lines);
85
	bool WriteFile(std::vector<CyString> *lines);
83
	bool WriteFileUTF(std::vector<CyString> *lines);
86
	bool WriteFileUTF(std::vector<CyString> *lines);
84
	bool WriteFile(CyStringList *lines);
87
	bool WriteFile(CyStringList *lines);
-
 
88
	bool writeFile(std::vector<Utils::String> *lines);
-
 
89
	bool writeFileUTF(std::vector<Utils::String> *lines);
-
 
90
	bool writeFile(Utils::CStringList *lines);
85
 
91
 
86
	bool remove();
92
	bool remove();
87
	bool Rename(CyString toFile);
93
	bool Rename(CyString toFile);
88
	bool copy(const Utils::String &toFile, bool keepTime = false);
94
	bool copy(const Utils::String &toFile, bool keepTime = false);
89
 
95
 
Line 152... Line 158...
152
	std::fstream m_fId;
158
	std::fstream m_fId;
153
 
159
 
154
	size_t m_lSize;
160
	size_t m_lSize;
155
};
161
};
156
 
162
 
-
 
163
#pragma warning( pop ) 
157
#endif //__FILE_IO_H__
164
#endif //__FILE_IO_H__
158
 
165