Simpatico  v1.10
ProcessorAnalyzerFactory.h
1 #ifndef TOOLS_PROCESSOR_ANALYZER_FACTORY_H
2 #define TOOLS_PROCESSOR_ANALYZER_FACTORY_H
3 
4 /*
5 * Simpatico - Simulation Package for Polymeric and Molecular Liquids
6 *
7 * Copyright 2010 - 2017, The Regents of the University of Minnesota
8 * Distributed under the terms of the GNU General Public License.
9 */
10 
11 #include <util/param/Factory.h> // base class template
12 #include <tools/analyzers/Analyzer.h> // base template parameter
13 
14 namespace Tools
15 {
16 
17  using namespace Util;
18 
19  class Processor;
20 
26  class ProcessorAnalyzerFactory : public Factory<Analyzer>
27  {
28 
29  public:
30 
37 
44  virtual Analyzer* factory(const std::string& className) const;
45 
46  protected:
47 
52  { return *processorPtr_; }
53 
54  private:
55 
57  Processor* processorPtr_;
58 
59  };
60 
61 }
62 #endif
A post-processor for analyzing outputs of MD simulations.
Definition: Processor.h:30
Abstract base for periodic output and/or analysis actions.
Utility classes for scientific computation.
Definition: accumulators.mod:1
Factory for Tools::Analyzer objects.
Processor & processor() const
Return reference to parent Processor.
Single-processor classes for pre- and post-processing MD trajectories.
Factory template.
Definition: Factory.h:32