}
Driver::Driver(struct sr_dev_driver *structure) :
- StructureWrapper<Context, struct sr_dev_driver>(structure),
+ StructureWrapper(structure),
initialized(false)
{
}
}
Channel::Channel(struct sr_channel *structure) :
- StructureWrapper<Device, struct sr_channel>(structure),
+ StructureWrapper(structure),
type(ChannelType::get(structure->type))
{
}
ChannelGroup::ChannelGroup(Device *device,
struct sr_channel_group *structure) :
- StructureWrapper<Device, struct sr_channel_group>(structure),
+ StructureWrapper(structure),
Configurable(device->structure->driver, device->structure, structure)
{
for (GSList *entry = structure->channels; entry; entry = entry->next)
}
TriggerStage::TriggerStage(struct sr_trigger_stage *structure) :
- StructureWrapper<Trigger, struct sr_trigger_stage>(structure)
+ StructureWrapper(structure)
{
}
}
TriggerMatch::TriggerMatch(struct sr_trigger_match *structure, shared_ptr<Channel> channel) :
- StructureWrapper<TriggerStage, struct sr_trigger_match>(structure), channel(channel)
+ StructureWrapper(structure), channel(channel)
{
}
}
Header::Header(const struct sr_datafeed_header *structure) :
- StructureWrapper<Packet, const struct sr_datafeed_header>(structure),
+ StructureWrapper(structure),
PacketPayload()
{
}
{
return static_pointer_cast<PacketPayload>(
static_pointer_cast<Header>(
- StructureWrapper<Packet, const struct sr_datafeed_header>::
- get_shared_pointer(parent)));
+ StructureWrapper::get_shared_pointer(parent)));
}
int Header::get_feed_version()
}
Meta::Meta(const struct sr_datafeed_meta *structure) :
- StructureWrapper<Packet, const struct sr_datafeed_meta>(structure),
+ StructureWrapper(structure),
PacketPayload()
{
}
{
return static_pointer_cast<PacketPayload>(
static_pointer_cast<Meta>(
- StructureWrapper<Packet, const struct sr_datafeed_meta>::
- get_shared_pointer(parent)));
+ StructureWrapper::get_shared_pointer(parent)));
}
map<const ConfigKey *, Glib::VariantBase> Meta::get_config()
}
Logic::Logic(const struct sr_datafeed_logic *structure) :
- StructureWrapper<Packet, const struct sr_datafeed_logic>(structure),
+ StructureWrapper(structure),
PacketPayload()
{
}
{
return static_pointer_cast<PacketPayload>(
static_pointer_cast<Logic>(
- StructureWrapper<Packet, const struct sr_datafeed_logic>::
- get_shared_pointer(parent)));
+ StructureWrapper::get_shared_pointer(parent)));
}
void *Logic::get_data_pointer()
}
Analog::Analog(const struct sr_datafeed_analog *structure) :
- StructureWrapper<Packet, const struct sr_datafeed_analog>(structure),
+ StructureWrapper(structure),
PacketPayload()
{
}
{
return static_pointer_cast<PacketPayload>(
static_pointer_cast<Analog>(
- StructureWrapper<Packet, const struct sr_datafeed_analog>::
- get_shared_pointer(parent)));
+ StructureWrapper::get_shared_pointer(parent)));
}
float *Analog::get_data_pointer()
}
InputFormat::InputFormat(const struct sr_input_module *structure) :
- StructureWrapper<Context, const struct sr_input_module>(structure)
+ StructureWrapper(structure)
{
}
}
OutputFormat::OutputFormat(const struct sr_output_module *structure) :
- StructureWrapper<Context, const struct sr_output_module>(structure)
+ StructureWrapper(structure)
{
}