Skip to content

Commit

Permalink
Make switch to MessageSet in SWIG
Browse files Browse the repository at this point in the history
  • Loading branch information
sfegan committed Sep 15, 2024
1 parent ef46971 commit c942a73
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 64 deletions.
10 changes: 3 additions & 7 deletions swig/iact_data/acada_event_decoder.i
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,15 @@

%template(ACADACameraEventDecoder_L0)
calin::iact_data::acada_event_decoder::ACADACameraEventDecoder<
calin::iact_data::acada_data_source::ACADA_EventMessage_L0,
calin::iact_data::acada_data_source::ACADA_HeaderMessage_L0>;
calin::iact_data::acada_data_source::ACADA_MessageSet_L0>;

%template(ACADACameraEventDecoder_R1v0)
calin::iact_data::acada_event_decoder::ACADACameraEventDecoder<
calin::iact_data::acada_data_source::ACADA_EventMessage_R1v0,
calin::iact_data::acada_data_source::ACADA_HeaderMessage_R1v0>;
calin::iact_data::acada_data_source::ACADA_MessageSet_R1v0>;

%template(ACADACameraEventDecoder_R1v1)
calin::iact_data::acada_event_decoder::ACADACameraEventDecoder<
calin::iact_data::acada_data_source::ACADA_EventMessage_R1v1,
calin::iact_data::acada_data_source::ACADA_HeaderMessage_R1v1,
calin::iact_data::acada_data_source::ACADA_DataStreamMessage_R1v1>;
calin::iact_data::acada_data_source::ACADA_MessageSet_R1v1>;

%import <iact_data/nectarcam_configuration.pb.i>
%include <iact_data/nectarcam_acada_event_decoder.hpp>
Expand Down
81 changes: 24 additions & 57 deletions swig/iact_data/raw_acada_event_data_source.i
Original file line number Diff line number Diff line change
Expand Up @@ -151,44 +151,36 @@ namespace calin::iact_data::acada_data_source {
calin::iact_data::acada_data_source::ACADA_EventMessage_L0>;
%template(ACADACameraEventDataSourceWithRunHeader_L0)
calin::iact_data::acada_data_source::ACADACameraEventDataSourceWithRunHeader<
calin::iact_data::acada_data_source::ACADA_EventMessage_L0,
calin::iact_data::acada_data_source::ACADA_HeaderMessage_L0>;
calin::iact_data::acada_data_source::ACADA_MessageSet_L0>;
%template(ACADACameraEventRandomAccessDataSourceWithRunHeader_L0)
calin::iact_data::acada_data_source::ACADACameraEventRandomAccessDataSourceWithRunHeader<
calin::iact_data::acada_data_source::ACADA_EventMessage_L0,
calin::iact_data::acada_data_source::ACADA_HeaderMessage_L0>;
calin::iact_data::acada_data_source::ACADA_MessageSet_L0>;

%template(DataSourceOpener_L0)
calin::io::data_source::DataSourceOpener<
calin::iact_data::acada_data_source::ACADACameraEventRandomAccessDataSourceWithRunHeader<
calin::iact_data::acada_data_source::ACADA_EventMessage_L0,
calin::iact_data::acada_data_source::ACADA_HeaderMessage_L0> >;
calin::iact_data::acada_data_source::ACADA_MessageSet_L0> >;

%template(BasicChainedDataSource_ACADACameraEventRandomAccessDataSourceWithRunHeader_L0)
calin::io::data_source::BasicChainedDataSource<
calin::iact_data::acada_data_source::ACADACameraEventRandomAccessDataSourceWithRunHeader<
calin::iact_data::acada_data_source::ACADA_EventMessage_L0,
calin::iact_data::acada_data_source::ACADA_HeaderMessage_L0> >;
calin::iact_data::acada_data_source::ACADA_MessageSet_L0> >;

%template(BasicChainedRandomAccessDataSource_ACADACameraEventRandomAccessDataSourceWithRunHeader_L0)
calin::io::data_source::BasicChainedRandomAccessDataSource<
calin::iact_data::acada_data_source::ACADACameraEventRandomAccessDataSourceWithRunHeader<
calin::iact_data::acada_data_source::ACADA_EventMessage_L0,
calin::iact_data::acada_data_source::ACADA_HeaderMessage_L0> >;
calin::iact_data::acada_data_source::ACADA_MessageSet_L0> >;

%template(ZFITSACADACameraEventDataSourceOpener_L0)
calin::iact_data::zfits_acada_data_source::ZFITSACADACameraEventDataSourceOpener<
calin::iact_data::acada_data_source::ACADA_EventMessage_L0,
calin::iact_data::acada_data_source::ACADA_HeaderMessage_L0>;
calin::iact_data::acada_data_source::ACADA_MessageSet_L0>;

%template(ZFITSSingleFileACADACameraEventDataSource_L0)
calin::iact_data::zfits_acada_data_source::ZFITSSingleFileACADACameraEventDataSource<
calin::iact_data::acada_data_source::ACADA_EventMessage_L0,
calin::iact_data::acada_data_source::ACADA_HeaderMessage_L0>;
calin::iact_data::acada_data_source::ACADA_MessageSet_L0>;
%template(ZFITSACADACameraEventDataSource_L0)
calin::iact_data::zfits_acada_data_source::ZFITSACADACameraEventDataSource<
calin::iact_data::acada_data_source::ACADA_EventMessage_L0,
calin::iact_data::acada_data_source::ACADA_HeaderMessage_L0>;
calin::iact_data::acada_data_source::ACADA_MessageSet_L0>;

%template(ZFITSSingleFileSingleMessageDataSource_ACADAEventMessage_L0)
calin::iact_data::zfits_acada_data_source::
Expand Down Expand Up @@ -293,45 +285,36 @@ namespace calin::iact_data::acada_data_source {
calin::iact_data::acada_data_source::ACADA_EventMessage_R1v0>;
%template(ACADACameraEventDataSourceWithRunHeader_R1v0)
calin::iact_data::acada_data_source::ACADACameraEventDataSourceWithRunHeader<
calin::iact_data::acada_data_source::ACADA_EventMessage_R1v0,
calin::iact_data::acada_data_source::ACADA_HeaderMessage_R1v0>;
calin::iact_data::acada_data_source::ACADA_MessageSet_R1v0>;
%template(ACADACameraEventRandomAccessDataSourceWithRunHeader_R1v0)
calin::iact_data::acada_data_source::ACADACameraEventRandomAccessDataSourceWithRunHeader<
calin::iact_data::acada_data_source::ACADA_EventMessage_R1v0,
calin::iact_data::acada_data_source::ACADA_HeaderMessage_R1v0>;
calin::iact_data::acada_data_source::ACADA_MessageSet_R1v0>;

%template(DataSourceOpener_R1v0)
calin::io::data_source::DataSourceOpener<
calin::iact_data::acada_data_source::ACADACameraEventRandomAccessDataSourceWithRunHeader<
calin::iact_data::acada_data_source::ACADA_EventMessage_R1v0,
calin::iact_data::acada_data_source::ACADA_HeaderMessage_R1v0> >;
calin::iact_data::acada_data_source::ACADA_MessageSet_R1v0> >;

%template(BasicChainedDataSource_ACADACameraEventRandomAccessDataSourceWithRunHeader_R1v0)
calin::io::data_source::BasicChainedDataSource<
calin::iact_data::acada_data_source::ACADACameraEventRandomAccessDataSourceWithRunHeader<
calin::iact_data::acada_data_source::ACADA_EventMessage_R1v0,
calin::iact_data::acada_data_source::ACADA_HeaderMessage_R1v0> >;
calin::iact_data::acada_data_source::ACADA_MessageSet_R1v0> >;

%template(BasicChainedRandomAccessDataSource_ACADACameraEventRandomAccessDataSourceWithRunHeader_R1v0)
calin::io::data_source::BasicChainedRandomAccessDataSource<
calin::iact_data::acada_data_source::ACADACameraEventRandomAccessDataSourceWithRunHeader<
calin::iact_data::acada_data_source::ACADA_EventMessage_R1v0,
calin::iact_data::acada_data_source::ACADA_HeaderMessage_R1v0> >;
calin::iact_data::acada_data_source::ACADA_MessageSet_R1v0> >;

%template(ZFITSACADACameraEventDataSourceOpener_R1v0)
calin::iact_data::zfits_acada_data_source::ZFITSACADACameraEventDataSourceOpener<
calin::iact_data::acada_data_source::ACADA_EventMessage_R1v0,
calin::iact_data::acada_data_source::ACADA_HeaderMessage_R1v0>;
calin::iact_data::acada_data_source::ACADA_MessageSet_R1v0>;

%template(ZFITSSingleFileACADACameraEventDataSource_R1v0)
calin::iact_data::zfits_acada_data_source::ZFITSSingleFileACADACameraEventDataSource<
calin::iact_data::acada_data_source::ACADA_EventMessage_R1v0,
calin::iact_data::acada_data_source::ACADA_HeaderMessage_R1v0>;
calin::iact_data::acada_data_source::ACADA_MessageSet_R1v0>;
%template(ZFITSACADACameraEventDataSource_R1v0)
calin::iact_data::zfits_acada_data_source::ZFITSACADACameraEventDataSource<
calin::iact_data::acada_data_source::ACADA_EventMessage_R1v0,
calin::iact_data::acada_data_source::ACADA_HeaderMessage_R1v0>;

calin::iact_data::acada_data_source::ACADA_MessageSet_R1v0>;

%template(ZFITSSingleFileSingleMessageDataSource_ACADAEventMessage_R1v0)
calin::iact_data::zfits_acada_data_source::
Expand Down Expand Up @@ -468,52 +451,36 @@ namespace calin::iact_data::acada_data_source {
calin::iact_data::acada_data_source::ACADA_EventMessage_R1v1>;
%template(ACADACameraEventDataSourceWithRunHeader_R1v1)
calin::iact_data::acada_data_source::ACADACameraEventDataSourceWithRunHeader<
calin::iact_data::acada_data_source::ACADA_EventMessage_R1v1,
calin::iact_data::acada_data_source::ACADA_HeaderMessage_R1v1,
calin::iact_data::acada_data_source::ACADA_DataStreamMessage_R1v1>;
calin::iact_data::acada_data_source::ACADA_MessageSet_R1v1>;
%template(ACADACameraEventRandomAccessDataSourceWithRunHeader_R1v1)
calin::iact_data::acada_data_source::ACADACameraEventRandomAccessDataSourceWithRunHeader<
calin::iact_data::acada_data_source::ACADA_EventMessage_R1v1,
calin::iact_data::acada_data_source::ACADA_HeaderMessage_R1v1,
calin::iact_data::acada_data_source::ACADA_DataStreamMessage_R1v1>;
calin::iact_data::acada_data_source::ACADA_MessageSet_R1v1>;

%template(DataSourceOpener_R1v1)
calin::io::data_source::DataSourceOpener<
calin::iact_data::acada_data_source::ACADACameraEventRandomAccessDataSourceWithRunHeader<
calin::iact_data::acada_data_source::ACADA_EventMessage_R1v1,
calin::iact_data::acada_data_source::ACADA_HeaderMessage_R1v1,
calin::iact_data::acada_data_source::ACADA_DataStreamMessage_R1v1> >;
calin::iact_data::acada_data_source::ACADA_MessageSet_R1v1> >;

%template(BasicChainedDataSource_ACADACameraEventRandomAccessDataSourceWithRunHeader_R1v1)
calin::io::data_source::BasicChainedDataSource<
calin::iact_data::acada_data_source::ACADACameraEventRandomAccessDataSourceWithRunHeader<
calin::iact_data::acada_data_source::ACADA_EventMessage_R1v1,
calin::iact_data::acada_data_source::ACADA_HeaderMessage_R1v1,
calin::iact_data::acada_data_source::ACADA_DataStreamMessage_R1v1> >;
calin::iact_data::acada_data_source::ACADA_MessageSet_R1v1> >;

%template(BasicChainedRandomAccessDataSource_ACADACameraEventRandomAccessDataSourceWithRunHeader_R1v1)
calin::io::data_source::BasicChainedRandomAccessDataSource<
calin::iact_data::acada_data_source::ACADACameraEventRandomAccessDataSourceWithRunHeader<
calin::iact_data::acada_data_source::ACADA_EventMessage_R1v1,
calin::iact_data::acada_data_source::ACADA_HeaderMessage_R1v1,
calin::iact_data::acada_data_source::ACADA_DataStreamMessage_R1v1> >;
calin::iact_data::acada_data_source::ACADA_MessageSet_R1v1> >;

%template(ZFITSACADACameraEventDataSourceOpener_R1v1)
calin::iact_data::zfits_acada_data_source::ZFITSACADACameraEventDataSourceOpener<
calin::iact_data::acada_data_source::ACADA_EventMessage_R1v1,
calin::iact_data::acada_data_source::ACADA_HeaderMessage_R1v1,
calin::iact_data::acada_data_source::ACADA_DataStreamMessage_R1v1>;
calin::iact_data::acada_data_source::ACADA_MessageSet_R1v1>;

%template(ZFITSSingleFileACADACameraEventDataSource_R1v1)
calin::iact_data::zfits_acada_data_source::ZFITSSingleFileACADACameraEventDataSource<
calin::iact_data::acada_data_source::ACADA_EventMessage_R1v1,
calin::iact_data::acada_data_source::ACADA_HeaderMessage_R1v1,
calin::iact_data::acada_data_source::ACADA_DataStreamMessage_R1v1>;
calin::iact_data::acada_data_source::ACADA_MessageSet_R1v1>;
%template(ZFITSACADACameraEventDataSource_R1v1)
calin::iact_data::zfits_acada_data_source::ZFITSACADACameraEventDataSource<
calin::iact_data::acada_data_source::ACADA_EventMessage_R1v1,
calin::iact_data::acada_data_source::ACADA_HeaderMessage_R1v1,
calin::iact_data::acada_data_source::ACADA_DataStreamMessage_R1v1>;
calin::iact_data::acada_data_source::ACADA_MessageSet_R1v1>;

%template(ZFITSSingleFileSingleMessageDataSource_ACADAEventMessage_R1v1)
calin::iact_data::zfits_acada_data_source::
Expand Down

0 comments on commit c942a73

Please sign in to comment.