• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

bnet/src/RocFactory.cxx (r4864/r3084)

Go to the documentation of this file.
00001 /********************************************************************
00002  * The Data Acquisition Backbone Core (DABC)
00003  ********************************************************************
00004  * Copyright (C) 2009-
00005  * GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
00006  * Planckstr. 1
00007  * 64291 Darmstadt
00008  * Germany
00009  * Contact:  http://dabc.gsi.de
00010  ********************************************************************
00011  * This software can be used under the GPL license agreements as stated
00012  * in LICENSE.txt file which is part of the distribution.
00013  ********************************************************************/
00014 #include "bnet/RocFactory.h"
00015 
00016 #include "bnet/RocWorkerApplication.h"
00017 
00018 dabc::FactoryPlugin bnet_roc_factory(new bnet::RocFactory("bnet-roc"));
00019 
00020 const char* bnet::xmlRocWorkerClass = "bnet::RocWorker";
00021 
00022 dabc::Application* bnet::RocFactory::CreateApplication(const char* classname, dabc::Command* cmd)
00023 {
00024    if (strcmp(classname, xmlRocWorkerClass)==0)
00025       return new bnet::RocWorkerApplication();
00026 
00027    return dabc::Factory::CreateApplication(classname, cmd);
00028 }
00029 
00030 dabc::Module* bnet::RocFactory::CreateModule(const char* classname, const char* modulename, dabc::Command* cmd)
00031 {
00032    return dabc::Factory::CreateModule(classname, modulename, cmd);
00033 }

Generated on Tue Dec 10 2013 04:52:21 for ROCsoft by  doxygen 1.7.1