added: forum

added: mount params can have arguments (in parentheses)
added: mount params: withheader, withinfo, restrictcreatethread, only_root_can_remove,
       can_use_emacs_on(level), can_use_mkdir_on(level), 
added: table Item has 'subject' column now
removed: column 'subject' from table Content




git-svn-id: svn://ttmath.org/publicrep/cmslu/trunk@505 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2009-06-05 20:29:06 +00:00
parent 3d001e7458
commit 1eb42446f8
38 changed files with 1357 additions and 369 deletions

View File

@@ -11,8 +11,9 @@
#ifndef headerfilecmslucoremount
#define headerfilecmslucoremount
#include <set>
#include <map>
#include <string>
#include <vector>
class Mount
@@ -31,7 +32,13 @@ public:
{
none = 0,
asc,
desc
desc,
withheader,
withinfo,
restrictcreatethread,
only_root_can_remove,
can_use_emacs_on,
can_use_mkdir_on
};
@@ -40,11 +47,14 @@ public:
Mount();
const char * TypeToStr();
bool ParseStrParam(const std::string & param);
bool ParseStrParam(const std::string & param, const std::vector<int> & args);
bool IsParam(Param p);
bool IsParam(Param p, int * first_arg);
void ClearParams();
private:
std::set<Param> param_table;
typedef std::map<Param, std::vector<int> > ParamTable;
ParamTable param_table;
};