DictDataInfo.h
Go to the documentation of this file.
//$$FILE$$
//$$VERSION$$
//$$DATE$$
//$$LICENSE$$
#ifndef DICTDATAINFO_H
#define DICTDATAINFO_H
#include <string>
#include <vector>
#include <rcsb/DataInfo.h>
#include <rcsb/DictObjCont.h>
class DictDataInfo : public DataInfo
{
public:
DictDataInfo(const DictObjCont& dictObjCont);
~DictDataInfo();
void GetVersion(std::string& version);
virtual const std::vector<std::string>& GetCatNames();
const std::vector<std::string>& GetItemsNames();
bool IsCatDefined(const std::string& catName) const;
bool IsItemDefined(const std::string& itemName);
const std::vector<std::string>& GetCatKeys(const std::string& catName);
const std::vector<std::string>& GetCatAttribute(const std::string& catName,
const std::string& refCatName, const std::string& refAttrName);
const std::vector<std::string>&
GetItemAttribute(const std::string& itemName,
const std::string& refCatName, const std::string& refAttrName);
virtual void GetCatItemsNames(std::vector<std::string>& itemsNames,
const std::string& catName);
virtual void GetParentCifItems(std::vector<std::string>& parCifItems,
const std::string& cifItemName);
protected:
const DictObjCont& _dictObjCont;
private:
void _GetDictVersion(std::string& dictVer);
bool _isDictCategory(const std::string& category) const;
};
#endif
DictDataInfo
Definition: DictDataInfo.h:25
DictDataInfo::GetCatNames
virtual const std::vector< std::string > & GetCatNames()
DictDataInfo::GetItemsNames
const std::vector< std::string > & GetItemsNames()
DictDataInfo::GetCatKeys
const std::vector< std::string > & GetCatKeys(const std::string &catName)
DictDataInfo::GetVersion
void GetVersion(std::string &version)
DataInfo
Definition: DataInfo.h:26
DictDataInfo::~DictDataInfo
~DictDataInfo()
DictDataInfo::GetCatAttribute
const std::vector< std::string > & GetCatAttribute(const std::string &catName, const std::string &refCatName, const std::string &refAttrName)
DictDataInfo::IsCatDefined
bool IsCatDefined(const std::string &catName) const
DictDataInfo::DictDataInfo
DictDataInfo(const DictObjCont &dictObjCont)
DictDataInfo::GetParentCifItems
virtual void GetParentCifItems(std::vector< std::string > &parCifItems, const std::string &cifItemName)
DictObjCont.h
Header file for ObjCont, ItemObjCont and DictObjCont classes.
DictDataInfo::GetItemAttribute
const std::vector< std::string > & GetItemAttribute(const std::string &itemName, const std::string &refCatName, const std::string &refAttrName)
DataInfo.h
DictDataInfo::_dictObjCont
const DictObjCont & _dictObjCont
Definition: DictDataInfo.h:57
DictObjCont
Public class that represents a dictionary object container.
Definition: DictObjCont.h:201
DictDataInfo::IsItemDefined
bool IsItemDefined(const std::string &itemName)
DictDataInfo::GetCatItemsNames
virtual void GetCatItemsNames(std::vector< std::string > &itemsNames, const std::string &catName)