Subversion Repositories spk

Rev

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

Rev 58 Rev 82
Line 39... Line 39...
39
 
39
 
40
	bool startWrite();
40
	bool startWrite();
41
	bool startRead();
41
	bool startRead();
42
	bool startModify();
42
	bool startModify();
43
	bool startAppend();
43
	bool startAppend();
44
	bool StartRead();
-
 
45
	void StopRead();
-
 
46
	bool AtEnd() const;
-
 
47
	bool atEnd() const;
44
	bool atEnd() const;
48
 
45
 
49
	size_t fileSize() const;
46
	size_t fileSize() const;
50
 
47
 
51
	time_t modifiedTime();
48
	time_t modifiedTime();
Line 74... Line 71...
74
	unsigned char *read(size_t iAmount);
71
	unsigned char *read(size_t iAmount);
75
	unsigned char *readAll(size_t *pSize = NULL);
72
	unsigned char *readAll(size_t *pSize = NULL);
76
 
73
 
77
	std::fstream &stream();
74
	std::fstream &stream();
78
 
75
 
-
 
76
	std::vector<Utils::String> *readLines();
79
	std::vector<CyString> *ReadLines();
77
	std::vector<CyString> *ReadLines();
80
	CyStringList *ReadLinesStr();
78
	CyStringList *ReadLinesStr();
81
	bool WriteFile(std::vector<CyString> *lines);
79
	bool WriteFile(std::vector<CyString> *lines);
82
	bool WriteFileUTF(std::vector<CyString> *lines);
80
	bool WriteFileUTF(std::vector<CyString> *lines);
83
	bool WriteFile(CyStringList *lines);
81
	bool WriteFile(CyStringList *lines);
Line 86... Line 84...
86
	bool Rename(CyString toFile);
84
	bool Rename(CyString toFile);
87
	bool copy(const Utils::String &toFile, bool keepTime = false);
85
	bool copy(const Utils::String &toFile, bool keepTime = false);
88
 
86
 
89
	bool isOpened() const;
87
	bool isOpened() const;
90
	bool Open ( CyString filename, bool = true );
88
	bool Open ( CyString filename, bool = true );
-
 
89
	bool open(const Utils::String &sFilename, bool bBinary = true);
91
 
90
 
92
	Utils::String baseName() const;
91
	Utils::String baseName() const;
93
	const Utils::String &fullFilename() const { return m_sFilename; }
92
	const Utils::String &fullFilename() const { return m_sFilename; }
94
	const Utils::String &filename() const { return m_sFile; }
93
	const Utils::String &filename() const { return m_sFile; }
95
	CyString GetFullFilename () { return m_sFilename; }
94
	CyString GetFullFilename () { return m_sFilename; }
Line 100... Line 99...
100
	bool NoFile () { return m_sFilename.empty(); }
99
	bool NoFile () { return m_sFilename.empty(); }
101
	size_t GetFilesize () { return m_lSize; }
100
	size_t GetFilesize () { return m_lSize; }
102
 
101
 
103
	char *ReadToData ( size_t *size );
102
	char *ReadToData ( size_t *size );
104
	bool WriteData ( const char *data, size_t size );
103
	bool WriteData ( const char *data, size_t size );
105
	bool WriteString ( CyString data );
104
	bool writeString ( const Utils::String &data );
106
 
105
 
107
	bool WritePartFile ( size_t *offsets, size_t numOffset );
106
	bool WritePartFile ( size_t *offsets, size_t numOffset );
108
	int TruncateFile ( size_t offset, size_t datasize );
107
	int TruncateFile ( size_t offset, size_t datasize );
109
	bool WipeFile();
108
	bool WipeFile();
110
	
109
	
111
	bool exists() const;
110
	bool exists() const;
112
	bool ExistsOld () const;
111
	bool ExistsOld () const;
113
	bool AppendFile ( CyString filename );
112
	bool AppendFile ( CyString filename );
-
 
113
	bool appendFile ( const Utils::String &filename );
114
	bool AppendData ( const char *d, size_t size );
114
	bool AppendData ( const char *d, size_t size );
115
	bool AppendDataToPos ( const char *d, size_t size, size_t start );
115
	bool AppendDataToPos ( const char *d, size_t size, size_t start );
116
 
116
 
117
	bool CheckFileExtension(CyString ext) { return (GetFileExtension().Compare(ext)) ? true : false; }
117
	bool CheckFileExtension(CyString ext) { return (GetFileExtension().Compare(ext)) ? true : false; }
118
	Utils::String extension();
118
	Utils::String extension();