Kleidemos
22-05-2003, 07:03
Che funzioni mi mancano oltre a quelle gia scritte x un engine di editor di testo??
#ifndef MOTOR_H
#define MOTOR_H
#include "Define.h"
/**
* Il motore dell' editor.
* Regge tutti i plugin
*
* The engine of the editor.
* Run all plugins
*/
namespace TeckEdit{
class Error;
 
class Engine
{
public:
/** Class constructor */
Engine();
/** Class destructor */
~Engine();
/** Init the Application */
void Init(Engine &eng);
/** Open a file */
bool Open(kstring filename);
/** Get size of file */
int GetLenght();
/** Get the path of files */
inline kstring GetPath(){ return _path; };
/** Load Configuration */
void LoadConfig();
/** Save Configuration */
void SaveConfig(kstring filename, kstring cnf);
/** Parse the information to save */
kstring Parse(kstring conf);
/** Appy the config */
void ApplyConfig();
/** Print a files */
void Print();
private:
/** the name of files */
kstring _filename;
/** the name of files conf */
kstring _confname;
/** the desidered extension */
kstring _ext;
/** the assolute path of files */
kstring _path;
/** the size of file */
kint _size;
/** the editor config */
kstring _conf;
/** the default extension to save */
kstring _defext;
/** a pointer to Error class */
Error* err;
};
}// namespace
#endif // Engine_H
//:~
P.S: salva lo so..........è TODO
#ifndef MOTOR_H
#define MOTOR_H
#include "Define.h"
/**
* Il motore dell' editor.
* Regge tutti i plugin
*
* The engine of the editor.
* Run all plugins
*/
namespace TeckEdit{
class Error;
class Engine
{
public:
/** Class constructor */
Engine();
/** Class destructor */
~Engine();
/** Init the Application */
void Init(Engine &eng);
/** Open a file */
bool Open(kstring filename);
/** Get size of file */
int GetLenght();
/** Get the path of files */
inline kstring GetPath(){ return _path; };
/** Load Configuration */
void LoadConfig();
/** Save Configuration */
void SaveConfig(kstring filename, kstring cnf);
/** Parse the information to save */
kstring Parse(kstring conf);
/** Appy the config */
void ApplyConfig();
/** Print a files */
void Print();
private:
/** the name of files */
kstring _filename;
/** the name of files conf */
kstring _confname;
/** the desidered extension */
kstring _ext;
/** the assolute path of files */
kstring _path;
/** the size of file */
kint _size;
/** the editor config */
kstring _conf;
/** the default extension to save */
kstring _defext;
/** a pointer to Error class */
Error* err;
};
}// namespace
#endif // Engine_H
//:~
P.S: salva lo so..........è TODO