Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

CStdRegistry Class Reference

Inheritance diagram for CStdRegistry::

CDir List of all members.

Public Methods

 CStdRegistry (const std::string &)
virtual ~CStdRegistry ()
CStdRegistryFileGetRegistryFile (const std::string &)
CStdRegistryFileGetRegistryFile () const
CStdRegistryFileCreateRegistryFile (const std::string &)
void DeleteRegistryFile (const std::string &)
bool IsInRegistry (const std::string &Name)
std::string GetPathofRegistry () const

Detailed Description

Emulate the Registry System of the Win32 platforms. It uses the files throught the standard library.


Constructor & Destructor Documentation

CStdRegistry::CStdRegistry const std::string &   Name
 

Init the Registry

Parameters:
Name   Path of the registry root. If the path doesn't exist, it is created.


Member Function Documentation

CStdRegistryFile * CStdRegistry::CreateRegistryFile const std::string &   Name
 

Create a file and a Registry File object wrapping this file. The object become the default Registry File of the object.

Parameters:
Name   Name of the file which are going to be created.
Returns:
A new Registry File object which pointers to the created file.
Note:
The missing paths are been created.

void CStdRegistry::DeleteRegistryFile const std::string &   Name
 

Deletes the file symbolised by the object CStdRegistryFile(Path,Name,this)

Parameters:
Name   Name of the file which are going to be deleted

std::string CStdRegistry::GetPathofRegistry   const [inline]
 

Returns:
path of the CStdRegistry object

CStdRegistryFile * CStdRegistry::GetRegistryFile const std::string &   Name
 

Returns the current pointer to the current Registry File.

Parameters:
Name   Name of the Registry File that will be the current Registry File of the object.
Returns:
Pointer to the current Registry File. If an error occurs, an exception is thrown, so the return pointer is always valid.

bool CStdRegistry::IsInRegistry const std::string &   Name [inline]
 

Parameters:
Name   Name of the file
Returns:
true if the file is in the registry


The documentation for this class was generated from the following files:
Top of Page
written by Pierre Rebours © 2000-2001. Terms of Use.