#include <MonitorElementCollection.h>
Definition at line 163 of file MonitorElementCollection.h.
◆ Type
◆ getDirname()
std::string const& MonitorElementData::Path::getDirname |
( |
| ) |
const |
|
inline |
◆ getFullname()
std::string MonitorElementData::Path::getFullname |
( |
| ) |
const |
|
inline |
◆ getObjectname()
std::string const& MonitorElementData::Path::getObjectname |
( |
| ) |
const |
|
inline |
◆ operator==()
bool MonitorElementData::Path::operator== |
( |
Path const & |
other | ) |
const |
|
inline |
◆ set()
void MonitorElementData::Path::set |
( |
std::string |
path, |
|
|
Path::Type |
type |
|
) |
| |
|
inline |
Definition at line 182 of file MonitorElementCollection.h.
References DIR, dirname_, eostools::move(), objname_, and castor_dqm_sourceclient_file_cfg::path.
186 while (not
path.empty() and
path.front() ==
'/') {
193 while (tokenStartPos <
path.size()) {
194 auto tokenEndPos =
path.find(
'/', tokenStartPos);
195 if (tokenEndPos == std::string::npos) {
196 tokenEndPos =
path.size();
198 if (0 == tokenEndPos - tokenStartPos) {
200 path.erase(
path.begin() + tokenStartPos);
202 }
else if (2 == tokenEndPos - tokenStartPos) {
203 if (
path[tokenStartPos] ==
'.' and
path[tokenStartPos + 1] ==
'.') {
205 auto endOfLastToken = tokenStartPos;
206 if (tokenStartPos > 1) {
209 auto startOfLastToken =
path.rfind(
'/', endOfLastToken);
210 if (startOfLastToken == std::string::npos) {
215 path.erase(
path.begin() + startOfLastToken + 1,
path.begin() + tokenEndPos);
216 tokenStartPos = startOfLastToken + 1;
221 tokenStartPos = tokenEndPos + 1;
227 if (not
path.empty() and
path.back() !=
'/') {
232 auto lastSlash =
path.rfind(
'/');
233 if (lastSlash == std::string::npos) {
◆ dirname_
std::string MonitorElementData::Path::dirname_ |
|
private |
◆ objname_
std::string MonitorElementData::Path::objname_ |
|
private |