Subversion Repositories spk

Rev

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

Rev 223 Rev 227
Line 79... Line 79...
79
 
79
 
80
	std::fstream &stream();
80
	std::fstream &stream();
81
 
81
 
82
	size_t readLines(std::vector<Utils::String>& to) const;
82
	size_t readLines(std::vector<Utils::String>& to) const;
83
	size_t readLines(std::vector<Utils::WString>& to) const;
83
	size_t readLines(std::vector<Utils::WString>& to) const;
-
 
84
	size_t readLinesUTF(std::vector<Utils::WString>& to) const;
84
	size_t readLines(Utils::WStringList& to) const;
85
	size_t readLines(Utils::WStringList& to) const;
85
 
86
 
86
	bool writeFile(std::vector<Utils::String>* lines);
87
	bool writeFile(std::vector<Utils::String>* lines);
87
	bool writeFile(const std::vector<Utils::WString> &lines) const;
88
	bool writeFile(const std::vector<Utils::WString>& lines) const;
88
	bool writeFileUTF(std::vector<Utils::WString>* lines);
-
 
89
	bool writeFile(Utils::WStringList* lines);
89
	bool writeFile(Utils::WStringList* lines);
-
 
90
	bool writeFileUTF(const std::vector<Utils::WString>* lines);
-
 
91
	bool writeFileUTF(const Utils::WStringList &lines);
90
 
92
 
91
	bool remove();
93
	bool remove();
92
	bool Rename(const Utils::WString &toFile);
94
	bool Rename(const Utils::WString &toFile);
93
	bool copy(const Utils::WString &toFile, bool keepTime = false);
95
	bool copy(const Utils::WString &toFile, bool keepTime = false);
94
 
96
 
Line 112... Line 114...
112
	bool WritePartFile ( size_t *offsets, size_t numOffset );
114
	bool WritePartFile ( size_t *offsets, size_t numOffset );
113
	int TruncateFile ( size_t offset, size_t datasize );
115
	int TruncateFile ( size_t offset, size_t datasize );
114
	bool WipeFile();
116
	bool WipeFile();
115
	
117
	
116
	bool exists() const;
118
	bool exists() const;
117
	bool ExistsOld () const;
-
 
118
	bool appendFile ( const Utils::String &filename );
119
	bool appendFile ( const Utils::String &filename );
119
	bool AppendData ( const char *d, size_t size );
120
	bool AppendData ( const char *d, size_t size );
120
	bool AppendDataToPos ( const char *d, size_t size, size_t start );
121
	bool AppendDataToPos ( const char *d, size_t size, size_t start );
121
 
122
 
122
	bool isFileExtension(const Utils::WString &ext) { return (extension().Compare(ext)) ? true : false; }
123
	bool isFileExtension(const Utils::WString &ext) { return (extension().Compare(ext)) ? true : false; }