Skip to content

Commit

Permalink
Start adding event decoder SWIG interface
Browse files Browse the repository at this point in the history
  • Loading branch information
sfegan committed Sep 12, 2024
1 parent 73d82e8 commit a640e35
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 72 deletions.
2 changes: 1 addition & 1 deletion swig/iact_data/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ set(CALIN_SWIG_FILES algorithms.i # telescope_data_source.i
event_visitor.i event_dispatcher.i
instrument_layout.i nectarcam_layout.i lstcam_layout.i
waveform_treatment_event_visitor.i nectarcam_ancillary_data.i
raw_acada_event_data_source.i)
raw_acada_event_data_source.i acada_event_decoder.i)
set(CALIN_SWIG_TARGET iact_data)

include_directories(${CTA_ADH_APIS_INCLUDE_DIRS})
Expand Down
69 changes: 69 additions & 0 deletions swig/iact_data/acada_event_decoder.i
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/*
calin/iact_data/actl_event_decoder.i -- Stephen Fegan -- 2018-11-20
SWIG interface file for calin.iact_data.acada_event_decoder
Copyright 2018, Stephen Fegan <[email protected]>
Laboratoire Leprince-Ringuet, CNRS/IN2P3, Ecole Polytechnique, Institut Polytechnique de Paris
This file is part of "calin"
"calin" is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License version 2 or
later, as published by the Free Software Foundation.
"calin" is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
*/

%module (package="calin.iact_data") acada_event_decoder
%feature(autodoc,2);

%{
#include <calin_global_definitions.hpp>
#include <calin_global_config.hpp>
#include <iact_data/acada_event_decoder.hpp>
#include <iact_data/instrument_layout.pb.h>
#include <iact_data/nectarcam_acada_event_decoder.hpp>
// #include <iact_data/lstcam_actl_event_decoder.hpp>
// #include <iact_data/cta_actl_event_decoder.hpp>
#define SWIG_FILE_WITH_INIT
%}

%init %{
import_array();
%}

%include "calin_typemaps.i"
%import "calin_global_definitions.i"

%import <iact_data/telescope_event.pb.i>

%import "raw_acada_event_data_source.i"

%include <iact_data/acada_event_decoder.hpp>

%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>;

%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>;

%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>;

%import <iact_data/nectarcam_configuration.pb.i>
%include <iact_data/nectarcam_acada_event_decoder.hpp>

// %include <iact_data/lstcam_acada_event_decoder.hpp>
// %include <iact_data/cta_acada_event_decoder.hpp>
71 changes: 0 additions & 71 deletions swig/iact_data/actl_event_decoder.i

This file was deleted.

0 comments on commit a640e35

Please sign in to comment.