Horus Doc || C++ Reference || Class Overview   Pixels   Images   Detector   Geometry   Registry || Doxygen's quick Index  

HxLibManager.h

00001 /*
00002  *  Copyright (c) 2000, University of Amsterdam, The Netherlands.
00003  *  All rights reserved.
00004  *
00005  *
00006  *  Author(s):
00007  *  Edo Poll (poll@wins.uva.nl)
00008  */
00009 
00010 #ifndef HxLibManager_h
00011 #define HxLibManager_h
00012 
00013 #include "HxStd.h"
00014 #include "HxString.h"
00015 #include "HxTagList.h"
00016 
00017 
00018 #define HxInitTrace(name) static HxInitTracer name(__FILE__)
00019 
00020 
00021 class L_HXBASIS HxLibManager
00022 {
00023 public:
00024     static HxLibManager&    instance();
00025 
00026     bool                    load(HxString libName);
00027 
00028     HxString                lastError() const;
00029 
00030     const HxTagList&        getLog() const;
00031     void                    logInit(HxString fileName);
00032 
00033 private:
00034                             HxLibManager();
00035                             HxLibManager(const HxLibManager&);
00036     HxString                _lastError;
00037     HxTagList               _log;
00038 };
00039 
00040 inline const HxTagList&
00041 HxLibManager::getLog() const
00042 {
00043     return _log;
00044 }
00045 
00046 class L_HXBASIS HxInitTracer
00047 {
00048 public:
00049     HxInitTracer(HxString fileName);
00050 };
00051 
00052 #endif

Generated on Tue Feb 3 14:18:39 2004 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001