WeMemStorage Class Reference

Memory storage class. Provides iweStorage interface with keeping data in memory and abilities to save/load state into the file(s). More...

#include <weMemStorage.h>

Inheritance diagram for WeMemStorage:

iweStorage iwePlugin

List of all members.

Public Member Functions

 WeMemStorage (void *handle=NULL)
 ~WeMemStorage (void)
virtual void * GetInterface (const string &ifName)
 Gets an interface.
virtual const string GetDesc ()
 Gets the plugin description.
virtual const string GetID ()
 Gets the identifier.
virtual const string InterfaceName ()
 Gets the final Interface name.
virtual WeStringList InterfaceList ()
 Gets the list of supported Interfaces.
virtual int Query (const string &objType, Operation op, const string &xmlData)
virtual int Report (const string &repType, const string &xmlData, string &result)
virtual int Delete (const string &objType, const string &xmlData)
void Save (const string &fileName)
void Load (const string &fileName)

Protected Attributes

WeStringMap tasks
WeStringMap dicts
WeStringMap auths
WeStringMap sysopts


Detailed Description

Memory storage class. Provides iweStorage interface with keeping data in memory and abilities to save/load state into the file(s).

Author:
A. Abramov
Date:
14.07.2009

Definition at line 35 of file weMemStorage.h.


Constructor & Destructor Documentation

WeMemStorage::WeMemStorage ( void *  handle = NULL  ) 

Definition at line 28 of file weMemStorage.cpp.

WeMemStorage::~WeMemStorage ( void   ) 

Definition at line 33 of file weMemStorage.cpp.


Member Function Documentation

int WeMemStorage::Delete ( const string &  objType,
const string &  xmlData 
) [virtual]

Todo:
Implement this!

Implements iweStorage.

Definition at line 86 of file weMemStorage.cpp.

const string WeMemStorage::GetDesc (  )  [virtual]

Gets the plugin description.

Return values:
The description.

Implements iwePlugin.

Definition at line 50 of file weMemStorage.cpp.

const string WeMemStorage::GetID (  )  [virtual]

Gets the identifier.

Returns string, what identifies this plugin. It may be GUID, or other unique identifier

Return values:
The identifier.

Implements iwePlugin.

Definition at line 55 of file weMemStorage.cpp.

void * WeMemStorage::GetInterface ( const string &  ifName  )  [virtual]

Gets an interface.

Returns abstracted pointer to the requested interface, or NULL if the requested interface isn't provided by this object. The interface name depends on the plugin implementation.

Parameters:
ifName - Name of the interface.
Return values:
null if it fails, else the interface.

Implements iweStorage.

Definition at line 37 of file weMemStorage.cpp.

WeStringList WeMemStorage::InterfaceList (  )  [virtual]

Gets the list of supported Interfaces.

Return values:
strings list.

Implements iweStorage.

Definition at line 65 of file weMemStorage.cpp.

const string WeMemStorage::InterfaceName (  )  [virtual]

Gets the final Interface name.

Return values:
string. 

Implements iweStorage.

Definition at line 60 of file weMemStorage.cpp.

void WeMemStorage::Load ( const string &  fileName  ) 

Definition at line 115 of file weMemStorage.cpp.

int WeMemStorage::Query ( const string &  objType,
Operation  op,
const string &  xmlData 
) [virtual]

Todo:
Implement this!

Implements iweStorage.

Definition at line 72 of file weMemStorage.cpp.

int WeMemStorage::Report ( const string &  repType,
const string &  xmlData,
string &  result 
) [virtual]

Todo:
Implement this!

Implements iweStorage.

Definition at line 79 of file weMemStorage.cpp.

void WeMemStorage::Save ( const string &  fileName  ) 

Definition at line 93 of file weMemStorage.cpp.


Member Data Documentation

Definition at line 62 of file weMemStorage.h.

Definition at line 61 of file weMemStorage.h.

Definition at line 63 of file weMemStorage.h.

Definition at line 60 of file weMemStorage.h.


The documentation for this class was generated from the following files:


 
©2009 Positive Technologies
 
Generated on Tue Jul 14 18:27:31 2009 for WebEngine by 
 
 
1.5.7
 
Get wpcObj at SourceForge.net. Fast, secure and Free Open Source software downloads