00001 /* 00002 webEngine is the HTML processing library 00003 Copyright (C) 2009 Andrew Abramov aabramov@ptsecurity.ru 00004 00005 This file is part of webEngine 00006 00007 webEngineis free software: you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License as published by 00009 the Free Software Foundation, either version 3 of the License, or 00010 (at your option) any later version. 00011 00012 webEngineis distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU General Public License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with webEngine. If not, see <http://www.gnu.org/licenses/>. 00019 */ 00020 #ifndef __WEMEMSTORAGE_H__ 00021 #define __WEMEMSTORAGE_H__ 00022 00023 #pragma once 00024 #include "weiStorage.h" 00025 00035 class WeMemStorage : 00036 public iweStorage 00037 { 00038 public: 00039 WeMemStorage(void* handle = NULL); 00040 ~WeMemStorage(void); 00041 00042 // iwePlugin functions 00043 virtual void* GetInterface(const string& ifName); 00044 virtual const string GetDesc(); 00045 virtual const string GetID(); 00046 virtual const string InterfaceName(); 00047 virtual WeStringList InterfaceList(); 00048 00049 // iweStorage functions 00050 virtual int Query(const string& objType, Operation op, const string& xmlData); 00051 virtual int Report(const string& repType, const string& xmlData, string& result); 00052 00053 virtual int Delete(const string& objType, const string& xmlData); 00054 00055 // WeMemStorage functions 00056 void Save(const string& fileName); 00057 void Load(const string& fileName); 00058 00059 protected: 00060 WeStringMap tasks; 00061 WeStringMap dicts; 00062 WeStringMap auths; 00063 WeStringMap sysopts; 00064 }; 00065 00066 #endif //__WEMEMSTORAGE_H__
©2009 Positive Technologies |
Generated on Tue Jul 14 18:27:30 2009 for WebEngine by |
|
1.5.7 |
|