CFeaturesContainer.h
Go to the documentation of this file.
1 #ifndef iipr_CFeaturesContainer_included
2 #define iipr_CFeaturesContainer_included
3 
4 
5 #include <istd/TPointerVector.h>
6 
9 
10 
11 namespace iipr
12 {
13 
14 
19  virtual public IFeaturesConsumer,
20  virtual public IFeaturesProvider
21 {
22 public:
27  void RemoveFeature(int featureIndex);
32 
33  // reimplemented (iipr::IFeaturesConsumer)
34  virtual void ResetFeatures();
35  virtual bool AddFeature(const imeas::INumericValue* featurePtr, bool* isFullPtr = NULL);
36 
37  // reimplemented (iipr::IFeaturesProvider)
38  virtual int GetFeaturesCount() const;
39  virtual const imeas::INumericValue& GetFeature(int index) const;
40 
41 private:
43 
44  FeaturesList m_featuresList;
45 };
46 
47 
48 } // namespace iipr
49 
50 
51 #endif // !iipr_CFeaturesContainer_included
52 
virtual int GetFeaturesCount() const
Get number of stored features.
void RemoveFeature(int featureIndex)
Remove feature at selected index.
virtual void ResetFeatures()
Remove all features from this container.
Basic implementation of a features container.
Container allowing access to features.
virtual const imeas::INumericValue & GetFeature(int index) const
Get access to single feature.
General parameter set containing list of numeric values.
Definition: INumericValue.h:20
#define NULL
imeas::INumericValue & GetFeatureRef(int index)
Get access to stored feature.
virtual bool AddFeature(const imeas::INumericValue *featurePtr, bool *isFullPtr=NULL)
Add new feature to the set of features.
Common interface for a features container consuming feature objects.

© 2007-2017 Witold Gantzke and Kirill Lepskiy