34 #ifndef FEATUREADAPTERTEMPLATE_H 35 #define FEATUREADAPTERTEMPLATE_H 51 Protocol *p,
Bus *b,
unsigned short instanceIndex) {
52 this->feature = featureInterface;
56 this->index = instanceIndex;
62 this->ID = (family.getType() << 16) | (instanceIndex & 0x00FFFF);
64 if(0 == this->feature || 0 == this->protocol || 0 == this->bus) {
65 std::string error(
"Null feature interface, protocol, or bus is not allowed.");
70 T *getFeature() {
return this->feature; }
72 virtual FeatureFamily &getFeatureFamily() {
return this->family; }
74 virtual long getID() {
return this->ID; }
Definition: FeatureAdapterInterface.h:41
Definition: FeatureAdapterTemplate.h:47
Definition: Protocol.h:44
Definition: FeatureFamily.h:39
Encapsulates all SeaBreeze classes.
Definition: DeviceFactory.h:42
Definition: IllegalArgumentException.h:43