00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef SIO_BLOCKMANAGER_H
00014 #define SIO_BLOCKMANAGER_H 1
00015
00016 #include <map>
00017 #include <string>
00018
00019 #include "SIO_definitions.h"
00020
00021 class SIO_block;
00022
00023 typedef std::map< std::string, SIO_block* > blockMap_c;
00024 typedef std::map< std::string, SIO_block* >::iterator blockMap_i;
00025
00026 class SIO_blockManager
00027 {
00028 public:
00029 static SIO_block* add( SIO_block* );
00030 static SIO_block* get( const char* );
00031 static SIO_verbosity getVerbosity();
00032 static unsigned int remove( const char* );
00033 static unsigned int remove( SIO_block* );
00034 static SIO_verbosity setVerbosity( SIO_verbosity );
00035
00036
00037 static void clear() ;
00038
00039 private:
00040 static blockMap_c* blockMap;
00041 static SIO_verbosity verbosity;
00042
00043 };
00044 #endif