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
49 lines
712 B
C++
Executable File
49 lines
712 B
C++
Executable File
/*
|
|
* This file is a part of CMSLU -- Content Management System like Unix
|
|
* and is not publicly distributed
|
|
*
|
|
* Copyright (c) 2009, Tomasz Sowa
|
|
* All rights reserved.
|
|
*
|
|
*/
|
|
|
|
|
|
#ifndef headerfilecmslucorecoremounts
|
|
#define headerfilecmslucorecoremounts
|
|
|
|
|
|
#include <map>
|
|
#include <string>
|
|
#include "mount.h"
|
|
#include "error.h"
|
|
|
|
|
|
class Mounts
|
|
{
|
|
public:
|
|
|
|
Mounts();
|
|
Error ReadMounts(const std::string & mounts);
|
|
Error ReadMounts();
|
|
|
|
void CalcCurMount();
|
|
|
|
|
|
// current mount point
|
|
// will not be null after calling CalcCurMount() or ReadMounts([...])
|
|
Mount * pmount;
|
|
|
|
private:
|
|
|
|
// dir_id, mount_point
|
|
typedef std::map<long, Mount> MountTab;
|
|
MountTab mount_tab;
|
|
|
|
|
|
void MountCmsForRoot();
|
|
};
|
|
|
|
|
|
|
|
#endif
|