#include <DstInfo.h>
Definition at line 30 of file DstInfo.h.
◆ DstInfo()
pool::DstInfo::DstInfo |
( |
| ) |
|
Constructors.
Definition at line 58 of file DstInfo.h.
63 markers[
"-dst"].desc << *at << std::endl;
65 markers[
"-dstconnect"].desc <<
"[Output database connection string] " << std::endl
66 <<
"The connection string will be looked up in $CORAL_DBLOOKUP_PATH/dblookup.xml" << std::endl
67 <<
"Database user authentication is done using CORAL_AUTH_PATH/authentication.xml" << std::endl
68 <<
" or CORAL_AUTH_USER and CORAL_AUTH_PASSWORD variables" << std::endl;
79 if (!retc)
return retc;
◆ ~DstInfo()
virtual pool::DstInfo::~DstInfo |
( |
| ) |
|
|
inlinevirtual |
◆ allowedTypes()
std::vector<std::string>& pool::CmdLineArgs2::allowedTypes |
( |
| ) |
|
|
inlineinherited |
Hack to bring in allowed types of Collections.
Definition at line 113 of file CmdLineArgs2.h.
◆ connect()
const std::string& pool::DstInfo::connect |
( |
| ) |
|
|
inline |
◆ evalArgs()
bool pool::DstInfo::evalArgs |
( |
std::vector< std::string > & |
argv | ) |
|
|
inlinevirtual |
Apply the criteria in the QualList to the argv[].
Reimplemented from pool::CmdLineArgs2.
Definition at line 82 of file DstInfo.h.
87 int ifirst = (*this)[
"-dst"].first;
88 int ilast = (*this)[
"-dst"].second;
89 std::string dstCollName =
"";
90 std::string dstCollType =
"";
93 dstCollName = std::string(
argv[
i]); ++
i;
94 dstCollType = std::string(
argv[
i]);
101 std::cerr <<
" ERROR Collection type " << dstCollType
102 <<
" is not presently handled by this program."
116 inline std::pair<std::string,std::string>
◆ evalArgsPass2()
virtual bool pool::CmdLineArgs2::evalArgsPass2 |
( |
std::vector< std::string > & |
, |
|
|
pool::Args2Container & |
|
|
) |
| |
|
inlinevirtualinherited |
◆ getArgQual()
ArgQual& pool::CmdLineArgs2::getArgQual |
( |
const std::string & |
a | ) |
|
|
inlineinherited |
◆ getArgQuals()
QualList& pool::CmdLineArgs2::getArgQuals |
( |
| ) |
|
|
inlineinherited |
◆ getOpt() [1/2]
bool pool::CmdLineArgs2::getOpt |
( |
const std::string & |
opt, |
|
|
int & |
optval |
|
) |
| const |
|
inherited |
check if option was present and return its (first) numerical value in optval (!)
◆ getOpt() [2/2]
bool pool::CmdLineArgs2::getOpt |
( |
const std::string & |
opt, |
|
|
std::string & |
optval |
|
) |
| const |
|
inherited |
check if option was present and return its (first) value in optval(!)
◆ getOpts()
bool pool::CmdLineArgs2::getOpts |
( |
const std::string & |
opt, |
|
|
std::vector< std::string > & |
optvalvec |
|
) |
| const |
|
inherited |
check if option was present and return its values in optvalvec(!)
◆ hasQual()
bool pool::CmdLineArgs2::hasQual |
( |
const std::string & |
arg | ) |
const |
|
inherited |
Check if argument was found in the argv[].
◆ ignoreMissingArgs()
void pool::CmdLineArgs2::ignoreMissingArgs |
( |
bool |
ignore | ) |
|
|
inlineinherited |
set flag to suppress error messages about missing arguments e.g. when -xmlInput is present
Definition at line 122 of file CmdLineArgs2.h.
◆ init()
void pool::CmdLineArgs2::init |
( |
| ) |
|
|
inlinevirtualinherited |
◆ initTypes()
void pool::CmdLineArgs2::initTypes |
( |
| ) |
|
|
privateinherited |
Fill the vector m_allowedTypes.
◆ name() [1/2]
const std::string& pool::CmdLineArgs2::name |
( |
| ) |
const |
|
inlineinherited |
◆ name() [2/2]
std::string pool::DstInfo::name |
( |
unsigned int |
ind | ) |
|
|
inline |
Definition at line 135 of file DstInfo.h.
142 std::cerr <<
"Out of range request for dst type" << std::endl;
◆ nameAndType()
std::pair< std::string, std::string > pool::DstInfo::nameAndType |
( |
unsigned int |
ind | ) |
|
|
inline |
Definition at line 124 of file DstInfo.h.
132 std::cerr <<
"Out of range request for dst name" << std::endl;
◆ nArgs()
unsigned int pool::CmdLineArgs2::nArgs |
( |
std::string |
| ) |
|
|
inherited |
Number of arguments for a given qualifer, e.g. nArgs("-src")
◆ nDst()
unsigned int pool::DstInfo::nDst |
( |
| ) |
|
|
inline |
◆ setArgQuals()
void pool::CmdLineArgs2::setArgQuals |
( |
QualList & |
quals | ) |
|
|
inlineinherited |
◆ type()
std::string pool::DstInfo::type |
( |
unsigned int |
ind | ) |
|
|
inline |
◆ valid()
bool pool::CmdLineArgs2::valid |
( |
| ) |
const |
|
inlineinherited |
Returns true if evalArgs has been called with no errors.
Definition at line 103 of file CmdLineArgs2.h.
◆ elements
T std::map< K, T >::elements |
|
inherited |
◆ keys
◆ m_allowedTypes
std::vector<std::string> pool::CmdLineArgs2::m_allowedTypes |
|
privateinherited |
◆ m_argsfine
bool pool::CmdLineArgs2::m_argsfine |
|
protectedinherited |
◆ m_argv
std::vector<std::string> pool::CmdLineArgs2::m_argv |
|
protectedinherited |
◆ m_connection
std::string pool::DstInfo::m_connection |
|
private |
◆ m_id
std::string pool::CmdLineArgs2::m_id |
|
privateinherited |
◆ m_ignoreMissingArgs
bool pool::CmdLineArgs2::m_ignoreMissingArgs |
|
protectedinherited |
◆ m_NameVec
std::vector<std::string> pool::DstInfo::m_NameVec |
|
private |
◆ m_quals
◆ m_TypeVec
std::vector<std::string> pool::DstInfo::m_TypeVec |
|
private |
The documentation for this class was generated from the following file: