added: issues ticket system
added functions: ticket, createticket, editticket (there is no 'rm' function working for tickets yet) changed: mount parser and mount points now we have more parameters (arguments in parameters) some refactoring in functions 'emacs' and 'mkdir' git-svn-id: svn://ttmath.org/publicrep/cmslu/trunk@554 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -15,36 +15,32 @@
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include "mount.h"
|
||||
|
||||
#include "error.h"
|
||||
|
||||
|
||||
class Mounts
|
||||
{
|
||||
public:
|
||||
|
||||
void ReadMounts(const std::string & mounts);
|
||||
void ReadMounts();
|
||||
Mounts();
|
||||
Error ReadMounts(const std::string & mounts);
|
||||
Error ReadMounts();
|
||||
|
||||
void CalcCurMount();
|
||||
|
||||
void CalculateCurrentMountType();
|
||||
|
||||
// !! nie lepiej aby zwracal tutaj referencje albo wskaznik na biezacy punkt?
|
||||
// !! w Mount mamy strukture std::set
|
||||
//Mount GetCurrentMountPoint();
|
||||
|
||||
Mount::Type CurrentMountType();
|
||||
bool CurrentMountIsParam(Mount::Param p);
|
||||
bool CurrentMountIsParam(Mount::Param p, int * first_arg);
|
||||
|
||||
void MountCmsForRoot();
|
||||
|
||||
|
||||
// current mount point
|
||||
// will not be null after calling CalcCurMount() or ReadMounts([...])
|
||||
Mount * pmount;
|
||||
|
||||
private:
|
||||
|
||||
Mount current_dir;
|
||||
|
||||
// dir_id, mount_point
|
||||
std::map<long, Mount> mount_table;
|
||||
typedef std::map<long, Mount> MountTab;
|
||||
MountTab mount_tab;
|
||||
|
||||
|
||||
void MountCmsForRoot();
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user