FRIBParallelanalysis  1.0
FrameworkforMPIParalleldataanalysisatFRIB
TCLPackagedObjectProcessor.h
1 /*
2  This software is Copyright by the Board of Trustees of Michigan
3  State University (c) Copyright 2005.
4 
5  You may use this software under the terms of the GNU public license
6  (GPL). The terms of this license are described at:
7 
8  http://www.gnu.org/licenses/gpl.txt
9 
10  Author:
11  Ron Fox
12  NSCL
13  Michigan State University
14  East Lansing, MI 48824-1321
15 */
16 #ifndef TCLPACKAGEDOBJECTPROCESSOR_H
17 #define TCLPACKAGEDOBJECTPROCESSOR_H
18 
19 // includes
20 
21 #ifndef TCLOBJECTPROCESSOR_H
22 #include "TCLObjectProcessor.h"
23 #endif
24 
25 #include <string>
26 
27 // forward definitions:
28 
29 class CTCLObjectPackage;
30 class CTCLInterpreter;
31 
43 {
44 private:
45  CTCLObjectPackage* m_package;
46 
47  // We need constructors and so on so that we can pass the
48  // specification of the command on to the base class:
49 public:
51  std::string command,
52  bool registerMe = true);
54 
55  // These are illegal in the base class so illegal here too:
56 
57 private:
60  int operator==(const CTCLPackagedObjectProcessor& rhs);
61  int operator!=(const CTCLPackagedObjectProcessor& rhs);
62 
63  // Two members support knowledge of the package.
64  // a virtual function provides the derived class with a chance to do initialization
65  // that requires knowledge of the package:
66 
67 public:
68  void onAttach(CTCLObjectPackage* package);
69 protected:
71  virtual void Initialize();
72 
73 
74 };
75 #endif
void onAttach(CTCLObjectPackage *package)
Definition: TCLPackagedObjectProcessor.cpp:50
virtual ~CTCLPackagedObjectProcessor()
Definition: TCLPackagedObjectProcessor.cpp:38
Definition: TCLPackagedObjectProcessor.h:42
Definition: TCLInterpreter.h:59
Definition: TCLObjectProcessor.h:44
CTCLPackagedObjectProcessor(CTCLInterpreter &interp, std::string command, bool registerMe=true)
Definition: TCLPackagedObjectProcessor.cpp:28
CTCLObjectPackage * getPackage()
Definition: TCLPackagedObjectProcessor.cpp:62
virtual void Initialize()
Definition: TCLPackagedObjectProcessor.cpp:71
Definition: TCLObjectPackage.h:36