source: BAORadio/libindi/libindi/libs/indibase/indiproperty.h@ 698

Last change on this file since 698 was 698, checked in by frichard, 13 years ago
File size: 994 bytes
Line 
1#ifndef INDI_INDIPROPERTY_H
2#define INDI_INDIPROPERTY_H
3
4#include "indibase.h"
5
6namespace INDI
7{
8
9class Property
10{
11public:
12 Property();
13 ~Property();
14
15 void setProperty(void *);
16 void setType(INDI_TYPE t);
17 void setRegistered(bool r);
18 void setDynamic(bool d);
19
20 void *getProperty() { return pPtr; }
21 INDI_TYPE getType() { return pType; }
22 bool getRegistered() { return pRegistered; }
23 bool isDynamic() { return pDynamic; }
24
25 // Convenience Functions
26 const char *getName();
27 const char *getLabel();
28 const char *getGroupName();
29 const char *getDeviceName();
30 IPState getState();
31 IPerm getPermission();
32
33 INumberVectorProperty *getNumber();
34 ITextVectorProperty *getText();
35 ISwitchVectorProperty *getSwitch();
36 ILightVectorProperty *getLight();
37 IBLOBVectorProperty *getBLOB();
38
39private:
40 void *pPtr;
41 INDI_TYPE pType;
42 bool pRegistered;
43 bool pDynamic;
44};
45
46} // namespace INDI
47
48#endif // INDI_INDIPROPERTY_H
Note: See TracBrowser for help on using the repository browser.