IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Macros
PtrCollHdrMacros.h File Reference

Header part of collection of shared pointer to serializable objects declaration macros. More...

#include <IPSDKBaseData/PtrColl/BasePtrColl.h>

Go to the source code of this file.

Macros

#define IPSDK_DECLARE_PTR_COLL(libraryName, className, dataType)
 macro allowing to declare a collection of shared pointer to serializable objects More...
 

Detailed Description

Header part of collection of shared pointer to serializable objects declaration macros.

Author
E. Noirfalise
Date
2015/06/18

Macro Definition Documentation

◆ IPSDK_DECLARE_PTR_COLL

#define IPSDK_DECLARE_PTR_COLL (   libraryName,
  className,
  dataType 
)
Value:
class IPSDK_LIB_API(libraryName) className : public ipsdk::BasePtrColl \
{ \
IPSDK_DECLARE_SERIAL_WITHOUT_COPY(libraryName, className) \
public: \
typedef dataType ValueType; \
typedef boost::shared_ptr<dataType > StorageType; \
typedef boost::shared_ptr<const dataType > ConstStorageType; \
typedef std::vector<StorageType> CollType; \
typedef std::vector<ConstStorageType> ConstCollType; \
className() {} \
~className() {} \
const std::string& getElementsClassName() const; \
bool haveSkeleton() const; \
const ConstCollType& getColl() const; \
CollType& getColl();
virtual bool haveSkeleton() const =0
virtual const std::string & getElementsClassName() const =0
retrieve class name associated to concrete elements into collection
Base class for collection (std::vector) of shared pointer to serializable objects.
Definition: BasePtrColl.h:33

macro allowing to declare a collection of shared pointer to serializable objects