Page MenuHomePhabricator (Chris)

TreeStorageNode.h
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

TreeStorageNode.h

/****************************************************************************
** Copyright (C) 2011 Luka Horvat <redreaper132 at gmail.com>
** Copyright (C) 2011 Edward Lii <edward_iii at myway.com>
** Copyright (C) 2011 O. Bahri Gordebak <gordebak at gmail.com>
**
**
** This file may be used under the terms of the GNU General Public
** License version 3.0 as published by the Free Software Foundation
** and appearing in the file LICENSE.GPL included in the packaging of
** this file.
**
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
**
** You should have received a copy of the GNU General Public License
** along with this program. If not, see <http://www.gnu.org/licenses/>.
**
****************************************************************************/
#ifndef TREESTORAGENODE_H
#define TREESTORAGENODE_H
#include <string>
#include <map>
#include <vector>
#include "ITreeStorage.h"
class TreeStorageNode:public ITreeStorageBuilder,public ITreeStorageReader{
private:
std::map<std::string,std::vector<std::string> >::iterator objAttrIterator;
public:
//std::map<std::string,TreeStorageNode*> SubNodes;
std::vector<TreeStorageNode*> SubNodes;
std::string Name;
std::vector<std::string> Value;
std::map<std::string,std::vector<std::string> > Attributes;
public:
TreeStorageNode(){}
virtual ~TreeStorageNode();
void Destroy();
virtual void SetName(std::string& sName);
virtual void SetValue(std::vector<std::string>& sValue);
virtual ITreeStorageBuilder* NewNode();
virtual void EndNode(){}
virtual void NewAttribute(std::string& sName,std::vector<std::string>& sValue);
virtual void GetName(std::string& sName);
virtual void GetValue(std::vector<std::string>& sValue);
virtual void* GetNextAttribute(void* lpUserData,std::string& sName,std::vector<std::string>& sValue);
virtual void* GetNextNode(void* lpUserData,ITreeStorageReader*& obj);
};
#endif

File Metadata

Mime Type
text/x-c++
Expires
Sun, Nov 15, 12:43 AM (5 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
132736
Default Alt Text
TreeStorageNode.h (1 KB)

Event Timeline