FRIBParallelanalysis  1.0
FrameworkforMPIParalleldataanalysisatFRIB
TCLApplication.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 
17 // CTCLApplication.h:
18 //
19 // This file defines the CTCLApplication class.
20 //
21 // Author:
22 // Ron Fox
23 // NSCL
24 // Michigan State University
25 // East Lansing, MI 48824-1321
26 // mailto:fox@nscl.msu.edu
27 //
28 // Copyright 1999 NSCL, All Rights Reserved.
29 //
31 
32 #ifndef TCLAPPLICATION_H //Required for current class
33 #define TCLAPPLICATION_H
34  //Required for base classes
35 #ifndef TCLINTERPRETEROBJECT_H
36 #include "TCLInterpreterObject.h"
37 #endif
38 
39 
40 
42 {
43  void* m_pInit; // Ensure app init pulled out of link.
44  Tcl_ThreadId m_thread;
45 public:
46  //Default constructor
47 
48  CTCLApplication ();
49  // is linked.
50  ~CTCLApplication ( ) { } //Destructor
51 
52 
53  //Copy constructor
54 
55  CTCLApplication (const CTCLApplication& aCTCLApplication ) :
56  CTCLInterpreterObject (aCTCLApplication)
57  {
58 
59  }
60 
61  //Operator= Assignment Operator
62 
63  CTCLApplication& operator= (const CTCLApplication& aCTCLApplication)
64  {
65  if (this == &aCTCLApplication) return *this;
66  CTCLInterpreterObject::operator= (aCTCLApplication);
67 
68  return *this;
69  }
70 
71  //Operator== Equality Operator
72 
73  int operator== (const CTCLApplication& aCTCLApplication)
74  {
75  return (
76  (CTCLInterpreterObject::operator== (aCTCLApplication))
77 
78  );
79  }
80 
81  virtual int operator() () =0;
82 
83  void getProgramArguments(int& argc, char**& argv);
84 
85  Tcl_ThreadId getThread() const;
86 
87 };
88 
89 #endif
void getProgramArguments(int &argc, char **&argv)
Definition: TCLApplication.cpp:154
Definition: TCLInterpreterObject.h:46
Definition: TCLApplication.h:41
Tcl_ThreadId getThread() const
Definition: TCLApplication.cpp:164
CTCLApplication()
Definition: TCLApplication.cpp:79