My Project
 All Classes Namespaces Functions Friends
Cle2000.hxx
1 
8 #ifndef Cle2000_HXX
9 #define Cle2000_HXX
10 
11 #include <cstddef> // for __GLIBCXX__
12 
13 #ifdef __GLIBCXX__ // for memory management with shared_ptr
14 # include <tr1/memory>
15 #else
16 # ifdef __IBMCPP__
17 # define __IBMCPP_TR1__
18 # endif
19 # include <memory>
20 #endif
21 
22 #include "Cle2000Exception.hxx"
23 #include "Lifo.hxx"
24 extern "C" {
25 #include <dirent.h>
26 int_32 donmod(char *cmodul, int_32 nentry, char (*hentry)[13], int_32 *ientry,
27  int_32 *jentry, lcm **kentry, char (*hparam)[73]);
28 }
29 #define Cle2000Ptr boost::shared_ptr<Cle2000>
30 
31 namespace ganlib {
32 
42 class Cle2000 {
43 public:
48  Cle2000(std::string sname);
49 
57  Cle2000(std::string sname, int_32 edit);
58 
64  Cle2000(std::string sname, LifoPtr jstack);
65 
74  Cle2000(std::string sname, int_32 edit, LifoPtr jstack);
75 
78  ~Cle2000() throw(Cle2000Exception);
79 
83  void setLifo(LifoPtr myLifo);
84 
87  void exec() throw(Cle2000Exception);
88 
89 private:
90  std::string procName;
91  int_32 edit;
92  LifoPtr stack;
93 }; // class Cle2000
94 
95 } // namespace ganlib
96 #endif