Subversion Repositories spk

Rev

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

Rev 102 Rev 111
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
 
3
 
4
#include "CyString.h"
4
#include "CyString.h"
5
#include "StringList.h"
5
#include "StringList.h"
-
 
6
#include "Utils/StringList.h"
6
#include <fstream>
7
#include <fstream>
7
#include <vector>
8
#include <vector>
8
#include "DirIO.h"
9
#include "DirIO.h"
9
 
10
 
10
#include <time.h>
11
#include <time.h>
Line 74... Line 75...
74
	std::fstream &stream();
75
	std::fstream &stream();
75
 
76
 
76
	std::vector<Utils::String> *readLines();
77
	std::vector<Utils::String> *readLines();
77
	std::vector<CyString> *ReadLines();
78
	std::vector<CyString> *ReadLines();
78
	CyStringList *ReadLinesStr();
79
	CyStringList *ReadLinesStr();
-
 
80
	Utils::CStringList *readLinesStr();
-
 
81
 
79
	bool WriteFile(std::vector<CyString> *lines);
82
	bool WriteFile(std::vector<CyString> *lines);
80
	bool WriteFileUTF(std::vector<CyString> *lines);
83
	bool WriteFileUTF(std::vector<CyString> *lines);
81
	bool WriteFile(CyStringList *lines);
84
	bool WriteFile(CyStringList *lines);
82
 
85
 
83
	bool remove();
86
	bool remove();
Line 90... Line 93...
90
 
93
 
91
	Utils::String baseName() const;
94
	Utils::String baseName() const;
92
	const Utils::String &fullFilename() const { return m_sFilename; }
95
	const Utils::String &fullFilename() const { return m_sFilename; }
93
	const Utils::String &filename() const { return m_sFile; }
96
	const Utils::String &filename() const { return m_sFile; }
94
	const Utils::String &dir() const { return m_sDirIO.dir(); }
97
	const Utils::String &dir() const { return m_sDirIO.dir(); }
95
	CyString GetFilename () { return m_sFile; }
98
	//CyString GetFilename () { return m_sFile; }
96
	//CyString GetDir() { return m_sDirIO.Dir(); }
-
 
97
	CDirIO &GetDirIO() { return m_sDirIO; }
99
	CDirIO &GetDirIO() { return m_sDirIO; }
98
 
100
 
99
	bool NoFile () { return m_sFilename.empty(); }
101
	bool NoFile () { return m_sFilename.empty(); }
100
	size_t GetFilesize () { return m_lSize; }
102
	size_t GetFilesize () { return m_lSize; }
101
 
103