FRIBParallelanalysis  1.0
FrameworkforMPIParalleldataanalysisatFRIB
TCLPackagedCommand.h
1 /*
2  This software is Copyright by the Board of Trustees of Michigan
3  State University (c) Copyright 2014.
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  Authors:
11  Ron Fox
12  Jeromy Tompkins
13  NSCL
14  Michigan State University
15  East Lansing, MI 48824-1321
16 */
17 
18 // CTCLPackagedCommand.h:
19 //
20 // This file defines the CTCLPackagedCommand class.
21 //
22 // Author:
23 // Ron Fox
24 // NSCL
25 // Michigan State University
26 // East Lansing, MI 48824-1321
27 // mailto:fox@nscl.msu.edu
28 //
29 // Copyright 1999 NSCL, All Rights Reserved.
30 //
32 
33 #ifndef TCLPACKAGEDCOMMAND_H //Required for current class
34 #define TCLPACKAGEDCOMMAND_H
35 
36  //Required for 1:1 associated classes
37 #ifndef TCLCOMMANDPACKAGE_H
38 #include "TCLCommandPackage.h"
39 #endif
40 
41 #ifndef TCLPROCESSOR_H
42 #include "TCLProcessor.h"
43 #endif
44 
45 #include <string>
46 
48 {
49 
50  CTCLCommandPackage& m_rMyPackage;
51 
52 public:
53 
54  //Constructor with arguments
55  CTCLPackagedCommand (const std::string& sCommand, CTCLInterpreter* pInterp,
56  CTCLCommandPackage& rPackage) :
57  CTCLProcessor(sCommand, pInterp),
58  m_rMyPackage(rPackage)
59  { }
60  CTCLPackagedCommand (const char* pCommand, CTCLInterpreter* pInterp,
61  CTCLCommandPackage& rPackage) :
62  CTCLProcessor(pCommand, pInterp),
63  m_rMyPackage(rPackage)
64  { }
65  ~ CTCLPackagedCommand ( ) { } //Destructor
66 
67  //Copy constructor [illegal]
68 private:
69  CTCLPackagedCommand (const CTCLPackagedCommand& aCTCLPackagedCommand ) ;
70 public:
71  // Assignment operator [illegal]
72 private:
73  CTCLPackagedCommand& operator=
74  (const CTCLPackagedCommand& aCTCLPackagedCommand);
75  int operator==(const CTCLPackagedCommand& rhs) const;
76  int operator!=(const CTCLPackagedCommand& rhs) const;
77 public:
78  // Selectors:
79 
80 public:
81  //Get accessor function for 1:1 association
82  CTCLCommandPackage& getMyPackage()
83  {
84  return m_rMyPackage;
85  }
86  // Mutators
87 
88 public:
89  void setMyPackage (CTCLCommandPackage& am_rMyPackage)
90  {
91  m_rMyPackage = am_rMyPackage;
92  }
93 
94 
95 };
96 
97 #endif
Definition: TCLInterpreter.h:59
Definition: TCLPackagedCommand.h:47
Definition: TCLProcessor.h:46
Definition: TCLCommandPackage.h:61