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:
2010-01-25 04:52:17 +00:00
parent 356e93914b
commit 89daf6489d
48 changed files with 2856 additions and 874 deletions

View File

@@ -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();
};