DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
dd4hep::sim::TypeName Class Reference

Helper class to handle strings of the format "type/name". More...

#include <Geant4Action.h>

Public Member Functions

 TypeName ()=default
 Default constructor. More...
 
 TypeName (const TypeName &copy)=default
 Copy constructor. More...
 
 TypeName (const std::pair< std::string, std::string > &c)
 Copy constructor from pair. More...
 
 TypeName (const std::string &typ, const std::string &nam)
 Initializing constructor. More...
 
TypeNameoperator= (const TypeName &copy)=default
 Assignment operator. More...
 

Static Public Member Functions

static TypeName split (const std::string &type_name)
 Split string pair according to default delimiter ('/') More...
 
static TypeName split (const std::string &type_name, const std::string &delim)
 Split string pair according to custom delimiter. More...
 

Public Attributes

std::string first
 
std::string second
 

Detailed Description

Helper class to handle strings of the format "type/name".

Author
M.Frank
Version
1.0

Definition at line 82 of file Geant4Action.h.

Constructor & Destructor Documentation

◆ TypeName() [1/4]

dd4hep::sim::TypeName::TypeName ( )
default

Default constructor.

◆ TypeName() [2/4]

dd4hep::sim::TypeName::TypeName ( const TypeName copy)
default

Copy constructor.

◆ TypeName() [3/4]

dd4hep::sim::TypeName::TypeName ( const std::pair< std::string, std::string > &  c)
inline

Copy constructor from pair.

Definition at line 91 of file Geant4Action.h.

◆ TypeName() [4/4]

dd4hep::sim::TypeName::TypeName ( const std::string &  typ,
const std::string &  nam 
)
inline

Initializing constructor.

Definition at line 94 of file Geant4Action.h.

Member Function Documentation

◆ operator=()

TypeName& dd4hep::sim::TypeName::operator= ( const TypeName copy)
default

Assignment operator.

◆ split() [1/2]

TypeName TypeName::split ( const std::string &  type_name)
static

Split string pair according to default delimiter ('/')

Definition at line 40 of file Geant4Action.cpp.

◆ split() [2/2]

TypeName TypeName::split ( const std::string &  type_name,
const std::string &  delim 
)
static

Split string pair according to custom delimiter.

Definition at line 30 of file Geant4Action.cpp.

Member Data Documentation

◆ first

std::string dd4hep::sim::TypeName::first

Definition at line 84 of file Geant4Action.h.

◆ second

std::string dd4hep::sim::TypeName::second

Definition at line 85 of file Geant4Action.h.


The documentation for this class was generated from the following files: