![]() |
|
|||
File indexing completed on 2025-08-02 08:21:01
0001 #ifndef __EXAMPLE_PLUGIN_H__ 0002 #define __EXAMPLE_PLUGIN_H__ 0003 0004 // this is part of the example how to build a plugin. 0005 // It consists of a (silly) daq_device class (which creates a 0006 // packet of type ID4EVT where channel i has the value i), and 0007 // the actual "plugin" part, a plugabble class called 0008 // gauss_plugin, which inherits from RCDAQPlugin. 0009 0010 // please note at the very bottom of the .cc file the declaration of 0011 // a static object of type gauss_plugin which gets 0012 // instantiated on load of the shared lib and triggers 0013 // the registration. 0014 0015 // Also note that the plugin class can support more than one 0016 // daq_device (here we have only one). 0017 0018 #include <rcdaq_plugin.h> 0019 #include <iostream> 0020 0021 class gauss_plugin : public RCDAQPlugin { 0022 0023 public: 0024 int create_device(deviceblock *db); 0025 0026 void identify(std::ostream& os = std::cout, const int flag = 0) const; 0027 0028 }; 0029 0030 0031 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |