45 BESFileContainer::BESFileContainer(
const string &sym_name,
46 const string &real_name,
50 string::size_type dotdot = real_name.find(
".." ) ;
51 if( dotdot != string::npos )
53 string s = (string)
"'../' not allowed in container real name " 96 BESCache cache( *keys,
"BES.CacheDir",
"BES.CachePrefix",
"BES.CacheSize" );
131 << (
void *)
this <<
")" << endl ;
static BESUncompressManager * TheManager()
virtual string access()
returns the name of a file to access for this container, uncompressing if neccessary.
virtual void dump(ostream &strm) const
dumps information about this object
Implementation of a caching mechanism.
Holds real data, container type and constraint for symbolic name read from persistence.
mapping of key/value pairs defining different behaviors of an application.
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.
static ostream & LMarg(ostream &strm)
virtual void dump(ostream &strm) const
Displays debug information about this object.
virtual void _duplicate(BESContainer ©_to)
void _duplicate(BESContainer ©_to)
duplicate this instance into the passed container
error thrown if the BES is not allowed to access the resource requested
string get_real_name() const
retreive the real name for this container, such as a file name.
A container is something that holds data.
virtual bool release()
release the file
static BESKeys * TheKeys()
virtual BESContainer * ptr_duplicate()
duplicate this instances of BESFileContainer