15 #ifndef __IPSDKBASEDATA_DATAITEMMAP_H__ 16 #define __IPSDKBASEDATA_DATAITEMMAP_H__ 20 #pragma warning (push) 21 #pragma warning (disable : 4251) 23 #include <IPSDKBaseData/DataItem/BaseDataItem.h> 40 static const bool g_bIsColl =
false;
41 static const bool g_bNode =
true;
42 static const bool g_bLeaf =
true;
47 typedef std::map<std::string, DataItemPtr>
MapType;
74 bool existsItem(
const std::string& itemName)
const;
80 const BaseDataItem& getItem(
const std::string& itemName)
const;
89 DataItemPtr getItemPtr(
const std::string& itemName);
97 void insertItem(
const std::string& itemName,
103 void removeItem(
const std::string& itemName);
134 #pragma warning (pop) 136 #endif // __IPSDKBASEDATA_DATAITEMMAP_H__ #define IPSDK_DECLARE_SERIAL_WITH_COPY(libraryName, className)
macro enabling serialization on class
Definition: SerializationHdrMacro.h:73
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
std::map< std::string, DataItemPtr > MapType
map type associated to object
Definition: DataItemMap.h:47
boost::shared_ptr< const BaseDataItem > DataItemConstPtr
shared pointer to const DataItem
Definition: DataItemTypes.h:149
Class used to store a variable collection of heterogeneous nodes.
Definition: DataItemMap.h:31
eDataItemType getDataItemType() const
retrieve data item type
Definition: DataItemMap.h:118
Definition: DataItemTypes.h:59
const MapType & getMap() const
retrieve map associated to object
Definition: DataItemMap.h:124
boost::shared_ptr< BaseDataItem > DataItemPtr
shared pointer to DataItem
Definition: DataItemTypes.h:146
std::set< std::string > ItemNames
collection of names or ids for items
Definition: DataItemTypes.h:143
MapType _itemMap
collection of named data items associated to object
Definition: DataItemMap.h:111
#define IPSDKBASEDATA_API
Import/Export macro for library IPSDKUtil.
Definition: IPSDKBaseDataExports.h:27
Base class for data items.
Definition: BaseDataItem.h:27
static const eDataItemType::domain g_itemType
flags indicating item type
Definition: DataItemMap.h:43
boost::enable_if< typename boost::mpl::and_< typename boost::is_same< boost::mpl::int_< AttributeType::g_attributeType >, boost::mpl::int_< eAttributeType::eAT_DataItem > >::type, typename boost::is_same< boost::mpl::int_< LeafCollType::g_itemType >, boost::mpl::int_< eDataItemType::eDIT_LeafColl > >::type >::type, RulePtr >::type isEmpty(const boost::shared_ptr< AttributeType > &pAttribute)
functions allowing to check that a leaf collection is empty
Definition: LeafCollSizeRuleOperators.h:65
eDataItemType
Enumerate describing data items type.
Definition: DataItemTypes.h:43
uint32_t ipUInt32
Base types definition.
Definition: BaseTypes.h:53