DABC (Data Acquisition Backbone Core)  2.9.9
Factory.h
Go to the documentation of this file.
1 // $Id: Factory.h 3862 2018-05-11 10:06:18Z linev $
2 
3 /********************************************************************
4  * The Data Acquisition Backbone Core (DABC)
5  ********************************************************************
6  * Copyright (C) 2009-
7  * GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
8  * Planckstr. 1
9  * 64291 Darmstadt
10  * Germany
11  * Contact: http://dabc.gsi.de
12  ********************************************************************
13  * This software can be used under the GPL license agreements as stated
14  * in LICENSE.txt file which is part of the distribution.
15  ********************************************************************/
16 
17 #ifndef ROOT_Factory
18 #define ROOT_Factory
19 
20 #ifndef DABC_Factory
21 #include "dabc/Factory.h"
22 #endif
23 
24 namespace root {
25 
26  class Factory : public dabc::Factory {
27  public:
28  Factory(const std::string &name) : dabc::Factory(name) {}
29 
30  virtual void Initialize();
31 
32  virtual dabc::Reference CreateObject(const std::string &classname, const std::string &objname, dabc::Command cmd);
33 
34  virtual dabc::DataInput* CreateDataInput(const std::string&);
35 
36  virtual dabc::DataOutput* CreateDataOutput(const std::string&);
37  };
38 
39 }
40 
41 #endif
Represents command with its arguments.
Definition: Command.h:99
Interface for implementing any kind of data input.
Definition: DataIO.h:61
Interface for implementing any kind of data output.
Definition: DataIO.h:158
Factory for user-specific classes
Definition: Factory.h:47
Reference on the arbitrary object
Definition: Reference.h:73
virtual dabc::DataOutput * CreateDataOutput(const std::string &)
Factory method to create data output.
Definition: Factory.cxx:50
virtual dabc::DataInput * CreateDataInput(const std::string &)
Factory method to create data input.
Definition: Factory.cxx:44
virtual dabc::Reference CreateObject(const std::string &classname, const std::string &objname, dabc::Command cmd)
Factory method to create object.
Definition: Factory.cxx:32
virtual void Initialize()
Method called by the manager during application start.
Definition: Factory.cxx:28
Factory(const std::string &name)
Definition: Factory.h:28
Event manipulation API.
Definition: api.h:23
Definition: Factory.h:24