DABC (Data Acquisition Backbone Core)  2.9.9
Factory.cxx
Go to the documentation of this file.
1 // $Id: Factory.cxx 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, 64291 Darmstadt, Germany *
9  * Contact: http://dabc.gsi.de *
10  ************************************************************
11  * This software can be used under the GPL license *
12  * agreements as stated in LICENSE.txt file *
13  * which is part of the distribution. *
14  ************************************************************/
15 
16 #include "aqua/Factory.h"
17 
18 #include "aqua/ClientOutput.h"
19 
20 #include "dabc/Url.h"
21 
23 
24 
26 {
27 
28  dabc::Url url(typ);
29  if (url.GetProtocol()=="aqua") {
30  DOUT1("AQUA output name %s", url.GetFullName().c_str());
31  return new aqua::ClientOutput(url);
32  }
33 
34  return 0;
35 }
Factory of MBS classes
Definition: Factory.h:29
virtual dabc::DataOutput * CreateDataOutput(const std::string &typ)
Factory method to create data output.
Definition: Factory.cxx:25
Interface for implementing any kind of data output.
Definition: DataIO.h:158
Small helper class to correctly instantiate user-specific factories.
Definition: Factory.h:106
Uniform Resource Locator interpreter.
Definition: Url.h:33
#define DOUT1(args ...)
Definition: logging.h:162
dabc::FactoryPlugin aquafactory(new aqua::Factory("aqua"))