init.hpp

00001 
00002 //
00003 // $Id: init.hpp,v 1.6 2007/11/22 10:37:29 werner Exp $
00004 //
00006 #ifndef __FIBER_IOINIT_HPP
00007 #define __FIBER_IOINIT_HPP "Created 03.09.2004 10:34:13 by werner"
00008 
00009 #ifndef NO_FIBER_XML
00010 #include <FiberIO/XML/init.hpp>
00011 #endif
00012 
00013 #include <FiberIO/HDF5/init.hpp>
00014 
00015 #ifndef NO_FIBER_FS
00016 #include <FiberIO/fs/init.hpp>
00017 #endif
00018 
00019 #include <FiberIO/imgseq/init.hpp>
00020 
00021 
00022 namespace Fiber
00023 {
00024 
00035         inline int IOinit()
00036         {
00037         int     ok = 0, s = 0; 
00038 #ifndef NO_FIBER_XML
00039                 if (XML::initialized)  ok |= (1<< (s++) );
00040 #endif
00041                 if (HDF5::initialized) ok |= (1<< (s++) ); 
00042 #ifndef NO_FIBER_FS
00043                 if (FS::initialized)   ok |= (1<< (s++) );
00044 #endif
00045 
00046 #ifndef NO_FIBER_IMGSEQ
00047                 if (ImageSequence::initialized)   ok |= (1<< (s++) ); 
00048 #endif
00049 
00050                 return ok;
00051         }
00052 
00053 
00054 } /* namespace Fiber */ 
00055 
00056 
00057 #endif /* __FIBER_IOINIT_HPP */
00058