Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

AlephManager.cpp

Go to the documentation of this file.
00001 
00002 //
00003 //  Implementation of class AlephManager
00004 //
00005 //  The Base Class for an AlephManager (IO, DB, EXE,...)
00006 //
00007 //  Author : G. Dissertori  ,  02.11.98
00008 //
00010 
00011 
00012 #include <string>
00013 #include <iostream>
00014 #include <fstream>
00015 
00016 #include "AlephManager.h"
00017 
00018 extern ofstream fout;
00019 
00020 
00021 //
00022 // the "constructor" sets the managerType and initializes other
00023 // private members 
00024 //
00025 void AlephManager::AlephManagerSetup(const string& aManagerType)
00026 {
00027 
00028   // store the manager type
00029   _thisManagerType.assign(aManagerType);
00030 
00031   // set the pointer to the session
00032   _theSession = AlephSession::TheAlephSession();
00033 
00034 
00035   // set the status
00036   _theStatus = CREATED;
00037 }
00038 
00039 //
00040 // the "destructor" frees the heap
00041 //
00042 void AlephManager::AlephManagerShutDown()
00043 {
00044   _theStatus = DELETED;
00045 }
00046 
00047 
00048 //
00049 // get the pointer to the session
00050 //
00051 AlephSession* AlephManager::alephSession() const
00052 {
00053   return _theSession;
00054 }
00055 
00056 
00057 
00058 //
00059 // get the managerType
00060 //
00061 string AlephManager::managerType() const
00062 {
00063   return _thisManagerType;
00064 }
00065 
00066  
00067 //
00068 // set the status
00069 //
00070 void AlephManager::setStatus(const AlephStatus& statusNow)
00071 {
00072   _theStatus = statusNow;
00073 }
00074 
00075 
00076 //
00077 // get the status
00078 //
00079 AlephStatus AlephManager::status() const
00080 {
00081   return _theStatus;
00082 }
00083 
00084 
00085 
00086 

Generated at Wed Jun 18 17:19:09 2003 for ALPHA++ by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001