The Gaudi Framework  master (37c0b60a)
DataObjID.cpp File Reference
#include <Gaudi/Parsers/Factory.h>
#include <GaudiKernel/Bootstrap.h>
#include <GaudiKernel/DataObjID.h>
#include <GaudiKernel/IClassIDSvc.h>
#include <GaudiKernel/ISvcLocator.h>
#include <functional>
#include <iomanip>
#include <iostream>
#include <GaudiKernel/ToStream.h>
Include dependency graph for DataObjID.cpp:

Go to the source code of this file.

Classes

struct  Gaudi::Parsers::DataObjIDGrammar< Iterator, Skipper >
 
struct  Gaudi::Parsers::DataObjIDGrammar< Iterator, Skipper >::Operations
 

Namespaces

 Gaudi
 This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from python with a format liks : ( nbins, min, max, title ) where title can be ommited.
 
 Gaudi::Parsers
 

Functions

 Gaudi::Parsers::REGISTER_GRAMMAR (DataObjID, DataObjIDGrammar)
 
StatusCode parse (DataObjID &dest, std::string_view src)
 
std::ostreamtoStream (const DataObjID &d, std::ostream &os)
 

Function Documentation

◆ parse()

StatusCode parse ( DataObjID dest,
std::string_view  src 
)

Definition at line 57 of file DataObjID.cpp.

57 { return Gaudi::Parsers::parse_( dest, quote( src ) ); }

◆ toStream()

std::ostream& toStream ( const DataObjID d,
std::ostream os 
)

Definition at line 93 of file DataObjID.cpp.

93  {
95  return ( d.m_clid != 0 || !d.m_className.empty() ) ? toStream( std::tie( d.m_className, d.m_key ), os )
96  : toStream( d.m_key, os );
97 }
Gaudi::Parsers::parse_
StatusCode parse_(ResultT &result, std::string_view input)
Definition: Factory.h:39
std::tie
T tie(T... args)
DataObjID::m_className
std::string m_className
Definition: DataObjID.h:90
gaudirun.dest
dest
Definition: gaudirun.py:224
toStream
std::ostream & toStream(const DataObjID &d, std::ostream &os)
Definition: DataObjID.cpp:93
DataObjID::m_clid
CLID m_clid
Definition: DataObjID.h:86
Gaudi::Utils::toStream
std::ostream & toStream(ITERATOR first, ITERATOR last, std::ostream &s, const std::string &open, const std::string &close, const std::string &delim)
the helper function to print the sequence
Definition: ToStream.h:299
DataObjID::m_key
std::string m_key
Definition: DataObjID.h:89
std::string::empty
T empty(T... args)