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

HxSystem.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 HxSystem_h
00011 #define HxSystem_h
00012 
00013 #include "HxStd.h"
00014 #include "HxString.h"
00015 
00016 #include "HxTracedObject.h"
00017 
00018 class L_HXBASIS HxSystem TRACED_OBJECT {
00019 public:
00020     typedef enum { F_OK = 0,
00021            W_OK = 2,
00022            R_OK = 4, }         AccessMode;
00023 
00024     static const HxSystem&      instance();
00025 
00026     HxString                    dirName(HxString path) const;
00027     HxString                    baseName(HxString path) const;
00028     HxString                    extName(HxString path) const;
00029     HxString                    makePath(
00030                                     HxString dirName, HxString baseName,
00031                                     HxString extName = HxString("")) const;
00032 
00033     bool                        access(HxString path, int mode) const;
00034 
00035 private:
00036                                 HxSystem() {}
00037                                 HxSystem(const HxSystem&) {}
00038     const HxSystem&             operator=(const HxSystem&) { return *this; }
00039 };
00040 
00041 #endif

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