Rosetta
Namespaces | Functions | Variables
open.cc File Reference

Functions for opening database files. More...

#include <basic/database/open.hh>
#include <basic/Tracer.hh>
#include <basic/options/keys/in.OptionKeys.gen.hh>
#include <basic/options/option.hh>
#include <utility/io/izstream.hh>
#include <utility/file/file_sys_util.hh>
#include <utility/file/PathName.hh>
#include <utility/excn/Exceptions.hh>
#include <cstdlib>
#include <utility/vector1.hh>

Namespaces

 basic
 Tags used to tag messeges sent by MPI functions used to decide whether a slave is requesting a new job id or flagging as job as being a bad input.
 
 basic::database
 

Functions

bool basic::database::open (utility::io::izstream &db_stream, std::string const &db_file, bool warn)
 Open a database file on a provided stream. More...
 
std::string basic::database::full_name (std::string const &db_file, bool warn)
 Full-path database file name. More...
 
std::string basic::database::find_database_path (std::string const &dir, std::string const &filename, bool const mute_error_if_failure)
 Find a path to a file. More...
 
std::string basic::database::find_database_path (std::string const &dir, std::string const &filename, std::string const &ext)
 Find a path to a file. More...
 
bool basic::database::find_cache_file (std::string const &cache_file, bool dir_only)
 Does cache file (absolute path) exist? if dir_only is true, will return true if the cache file could be created. More...
 
std::string basic::database::full_cache_name (std::string const &short_name, std::string const &source_file, bool for_writing)
 Get the (absolute) path to a given cached file. If source_file is given, it's the full path to the source database file that's being cached. If for_writing is true, will only check that the given file would be creatable. Will return an empty string if it can't find a cache file. More...
 

Variables

static basic::Tracer basic::database::TR ("basic.io.database")
 

Detailed Description

Functions for opening database files.

Author
Stuart G. Mentzer (Stuar.nosp@m.t_Me.nosp@m.ntzer.nosp@m.@obj.nosp@m.exx.c.nosp@m.om)