#include <FileInPath.h>
Public Types | |
typedef std::string | String |
Public Member Functions | |
FileInPath (const String &ipath, const String &ifile) | |
constructor More... | |
FileInPath (const FileInPath &rh) | |
const String & | name () const |
return full name More... | |
std::ifstream * | operator() () |
return stream More... | |
FileInPath & | operator= (const FileInPath &rh) |
and usual operator More... | |
~FileInPath () | |
destructor More... | |
Private Member Functions | |
void | init (const String &ipath, const String &ifile) |
Private Attributes | |
std::vector< String > | directories |
String | file |
own_ptr< std::ifstream > | in |
Static Private Attributes | |
static const String | semicolon |
open the first file found in a ":"-separated list of files (path)
Definition at line 14 of file FileInPath.h.
typedef std::string FileInPath::String |
Definition at line 16 of file FileInPath.h.
FileInPath::FileInPath | ( | const FileInPath & | rh | ) |
FileInPath::~FileInPath | ( | ) |
Definition at line 12 of file FileInPath.cc.
References edmIntegrityCheck::d, directories, file, compare_using_db::ifile, in, own_ptr< X, P >::release(), and semicolon.
Referenced by FileInPath(), and name().
|
inline |
return full name
Definition at line 34 of file FileInPath.h.
References file, compare_using_db::ifile, and init().
Referenced by config.CFG::__str__(), validation.Sample::digest(), and CSCGasCollisions::readCollisionTable().
|
inline |
return stream
Definition at line 31 of file FileInPath.h.
References own_ptr< X, P >::get(), and in.
FileInPath & FileInPath::operator= | ( | const FileInPath & | rh | ) |
and usual operator
Definition at line 31 of file FileInPath.cc.
References directories, file, own_ptr< X, P >::get(), and in.
|
private |
Definition at line 41 of file FileInPath.h.
Referenced by init(), and operator=().
|
private |
Definition at line 42 of file FileInPath.h.
Referenced by FileInPath(), init(), name(), and operator=().
|
private |
Definition at line 43 of file FileInPath.h.
Referenced by FileInPath(), init(), operator()(), and operator=().
|
staticprivate |
Definition at line 39 of file FileInPath.h.
Referenced by init().