CSamplingParamsComp.h
Go to the documentation of this file.
1 #ifndef isig_CSamplingParamsComp_included
2 #define isig_CSamplingParamsComp_included
3 
4 
5 // ACF includes
6 #include "iser/ISerializable.h"
7 #include "icomp/CComponentBase.h"
8 
10 #include "isig/ISamplingParams.h"
11 
12 
13 namespace isig
14 {
15 
16 
22 {
23 public:
25 
26  I_BEGIN_COMPONENT(CSamplingParamsComp);
27  I_REGISTER_INTERFACE(iser::ISerializable);
28  I_REGISTER_INTERFACE(isig::ISamplingParams);
29  I_ASSIGN(m_samplingConstraintsCompPtr, "Constraints", "Information about acceptable values for this parameters", false, "Constraints");
30  I_END_COMPONENT;
31 
33 
34  // reimplemented (isig::ISamplingParams)
35  virtual const ISamplingConstraints* GetSamplingConstraints() const;
36  virtual double GetInterval() const;
37  virtual void SetInterval(double value);
38  virtual int GetSamplingMode() const;
39  virtual bool SetSamplingMode(int mode);
40 
41  // reimplemented (iser::ISerializable)
42  virtual bool Serialize(iser::IArchive& archive);
43 
44 protected:
45  // reimplemented (icomp::CComponentBase)
46  virtual void OnComponentCreated();
47 
48 private:
49  double m_interval;
50  int m_samplingMode;
51 
52  I_REF(ISamplingConstraints, m_samplingConstraintsCompPtr);
53 };
54 
55 
56 } // namespace isig
57 
58 
59 #endif // !isig_CSamplingParamsComp_included
60 
61 
Define constrains of sampling parameters.
virtual void SetInterval(double value)
Set sampling interval in seconds.
General implementation of sampling parameters.
virtual bool Serialize(iser::IArchive &archive)
virtual int GetSamplingMode() const
Get mode of sampling.
Sampler parameters.
virtual double GetInterval() const
Get sampling interval in seconds.
virtual void OnComponentCreated()
virtual const ISamplingConstraints * GetSamplingConstraints() const
Get access to constraints information about possible value ranges.
icomp::CComponentBase BaseClass
virtual bool SetSamplingMode(int mode)
Set mode of sampling.

© 2007-2011 Witold Gantzke and Kirill Lepskiy