CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Unpacker.h
Go to the documentation of this file.
1 #ifndef Unpacker_h
2 #define Unpacker_h
3 
5 
7 
8 namespace l1t {
9  class UnpackerCollections;
10 
11  class Unpacker {
12  public:
13  virtual bool unpack(const Block& block, UnpackerCollections *coll) = 0;
14  };
15 
16  typedef Unpacker*(unpack_fct)();
18 
20  public:
21  inline static const UnpackerFactory* get() { return &instance_; };
22  std::shared_ptr<Unpacker> make(const std::string&) const;
23  private:
25  static const UnpackerFactory instance_;
26  };
27 }
28 
29 #define DEFINE_L1T_UNPACKER(type) \
30  DEFINE_EDM_PLUGIN(l1t::UnpackerFactoryT,type,#type)
31 
32 #endif
edmplugin::PluginFactory< unpack_fct > UnpackerFactoryT
Definition: Unpacker.h:17
virtual bool unpack(const Block &block, UnpackerCollections *coll)=0
std::shared_ptr< Unpacker > make(const std::string &) const
Definition: Unpacker.cc:12
JetCorrectorParametersCollection coll
Definition: classes.h:10
static const UnpackerFactory instance_
Definition: Unpacker.h:24
Unpacker *( unpack_fct)()
Definition: Unpacker.h:16