00001
00002
00003
00004
00005
00006
00007
00008
00009
00011
00012
00013 #ifndef ALEPHMANAGER_H
00014 #define ALEPHMANAGER_H
00015
00016 #include <string>
00017 #include "AlephSession.h"
00018
00019
00020
00021 enum AlephStatus { CREATED , INITIALIZED , RUNNING ,
00022 TERMINATED , DELETED , UNKNOWN };
00023
00024
00026 class AlephManager {
00027
00028 public:
00029
00030
00031
00032
00034
00035
00037 virtual AlephRC terminate() = 0;
00038
00039
00040
00041
00042
00043
00045 virtual ~AlephManager() {};
00046
00048 void AlephManagerSetup(const string& aManagerType);
00049
00051 void AlephManagerShutDown();
00052
00054 virtual AlephSession* alephSession() const;
00055
00056
00057
00059
00060
00062 virtual void setStatus(const AlephStatus& statusNow);
00063
00065 virtual AlephStatus status() const;
00066
00067
00068 private:
00069
00070
00071 string _thisManagerType;
00072
00073
00074 AlephSession* _theSession;
00075
00076
00077
00078 AlephStatus _theStatus;
00079
00080 };
00081
00082
00083
00084
00085
00086 #endif