?? textfile.h
字號:
//-------------------------------------------------------------------
// Author........: Aleksander 豩rn
// Date..........:
// Description...:
// Revisions.....:
//===================================================================
#ifndef __TEXTFILE_H__
#define __TEXTFILE_H__
#include <copyright.h>
#include <kernel/structures/annotatedstructure.h>
//-------------------------------------------------------------------
// Class prototypes.
//===================================================================
class ifstream;
class ofstream;
//-------------------------------------------------------------------
// Class.........: TextFile
// Author........: Aleksander 豩rn
// Date..........:
// Description...: Enables the GUI to represent text files in the
// project tree.
// Revisions.....:
//===================================================================
class TextFile : public AnnotatedStructure {
public:
//- Type definitions...............................................
typedef Vector(Handle<TextFile>) Handles;
private:
//- Member variables..............................................
String filename_;
protected:
//- Constructors...................................................
TextFile(const TextFile &in);
public:
//- Constructor and destructor....................................
TextFile();
virtual ~TextFile();
//- Methods inherited from Identifier.............................
DECLAREIDMETHODS()
//- Methods inherited from Persistent.............................
virtual bool Load(ifstream &stream);
virtual bool Save(ofstream &stream) const;
//- Methods inherited from Structure..............................
virtual Structure *Duplicate() const;
virtual void Clear();
//- Local methods.................................................
const String &GetFilename() const {return filename_;}
bool SetFilename(const String &filename) {filename_ = filename; return true;}
};
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -