33 #ifndef I_BESUncompressManager_h 34 #define I_BESUncompressManager_h 1 70 map< string, p_bes_uncompress > _uncompress_list ;
72 unsigned int _num_tries ;
74 typedef map< string, p_bes_uncompress >::const_iterator UCIter ;
75 typedef map< string, p_bes_uncompress >::iterator UIter ;
92 virtual void dump( ostream &strm )
const ;
97 #endif // I_BESUncompressManager_h static BESUncompressManager * TheManager()
virtual bool remove_method(const string &name)
removes a uncompress method from the list
virtual ~BESUncompressManager(void)
Implementation of a caching mechanism.
void(* p_bes_uncompress)(const string &src, const string &target)
Base object for bes objects.
List of all registered uncompress methods.
virtual bool uncompress(const string &src, string &target, BESCache &cache)
find the method that can uncompress the specified src and pass control to that method.
virtual string get_method_names()
returns the comma separated list of all uncompression methods currently registered.
virtual bool add_method(const string &name, p_bes_uncompress method)
add a uncompress method to the list
virtual p_bes_uncompress find_method(const string &name)
returns the uncompression method specified
virtual void dump(ostream &strm) const
dumps information about this object
BESUncompressManager(void)
constructs an uncompression manager adding gz, z, and bz2 uncompression methods by default...