Jpp
pmt_effective_area_update_2
the software that should make you happy
|
Auxiliary methods for handling file names, type names and environment. More...
#include <string>
#include <fstream>
#include <sstream>
#include <cstdlib>
#include <map>
#include "JLang/gzstream.h"
Go to the source code of this file.
Namespaces | |
JEEP | |
General puprpose classes and methods. | |
JPP | |
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES). | |
Functions | |
std::string | JEEP::strip (const std::string &file_name) |
Strip leading and trailing white spaces from file name. More... | |
std::string | JEEP::getFilenameExtension (const std::string &file_name) |
Get file name extension, i.e. part after last JEEP::FILENAME_SEPARATOR if any. More... | |
std::string | JEEP::getFilename (const std::string &file_name) |
Get file name part, i.e. part after last JEEP::PATHNAME_SEPARATOR if any. More... | |
std::string | JEEP::getPath (const std::string &file_name) |
Get path, i.e. part before last JEEP::PATHNAME_SEPARATOR if any. More... | |
std::string | JEEP::getFullPath (const std::string &path) |
Get full path, i.e. add JEEP::PATHNAME_SEPARATOR if necessary. More... | |
std::string | JEEP::getFilename (const std::string &path, const std::string &file_name) |
Compose full file name and introduce JEEP::PATHNAME_SEPARATOR if needed. More... | |
std::string | JEEP::getPath (const std::string &variable, const std::string &file_name) |
Get selected path from environment variable for given file name. More... | |
std::string | JEEP::getFullFilename (const std::string &variable, const std::string &file_name) |
Get full file name (see JEEP::getPath). More... | |
std::string | JEEP::getNamespace (const std::string &type_name) |
Get name space, i.e. part before JEEP::TYPENAME_SEPARATOR. More... | |
std::string | JEEP::getClassname (const std::string &type_name) |
Get type name, i.e. part after JEEP::TYPENAME_SEPARATOR. More... | |
std::string | JEEP::getProtocol (const std::string &file_name) |
Get protocol, i.e. part before first JEEP::PROTOCOL_SEPARATOR if any. More... | |
std::string | JEEP::getURL () |
Get URL of document pages. More... | |
template<class T > | |
T * | JEEP::open (const std::string &file_name) |
Open file. More... | |
template<> | |
std::istream * | JEEP::open (const std::string &file_name) |
Open file. More... | |
template<> | |
std::ostream * | JEEP::open (const std::string &file_name) |
Open file. More... | |
void | JEEP::close (std::istream *pf) |
Close file. More... | |
void | JEEP::close (std::ostream *pf) |
Close file. More... | |
Variables | |
static const char *const | JEEP::LD_LIBRARY_PATH = "LD_LIBRARY_PATH" |
Nick names of environment variables. More... | |
static const char *const | JEEP::PATH = "PATH" |
binary file paths More... | |
static const char *const | JEEP::SHELL = "SHELL" |
SHELL. More... | |
static const char *const | JEEP::JPP_PAGES = "JPP_PAGES" |
Jpp document pages. More... | |
static const char | JEEP::PATHNAME_SEPARATOR = '/' |
path name separator More... | |
static const char | JEEP::PATHLIST_SEPARATOR = ':' |
path list separator More... | |
static const char | JEEP::FILENAME_SEPARATOR = '.' |
file name separator More... | |
static const char *const | JEEP::TYPENAME_SEPARATOR = "::" |
type name separator More... | |
static const char | JEEP::PROTOCOL_SEPARATOR = ':' |
protocol separator More... | |
Auxiliary methods for handling file names, type names and environment.
Definition in file JeepToolkit.hh.