winix/core/mounts.h

43 lines
543 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 "mount.h"
class Mounts
{
public:
void ReadMounts();
void CalculateCurrentMountType();
Mount GetCurrentMountPoint();
void MountCmsForRoot();
private:
Mount current_dir;
// dir_id, mount_point
std::map<long, Mount> mount_table;
};
#endif