Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
cheprep::DefaultHepRepAttDef Class Reference

#include <DefaultHepRepAttDef.h>

+ Inheritance diagram for cheprep::DefaultHepRepAttDef:

Public Member Functions

 DefaultHepRepAttDef (std::string name, std::string desc, std::string category, std::string extra)
 
 ~DefaultHepRepAttDef ()
 
HEPREP::HepRepAttDefcopy ()
 
std::string getName ()
 
std::string getLowerCaseName ()
 
std::string getDescription ()
 
std::string getCategory ()
 
std::string getExtra ()
 
- Public Member Functions inherited from HEPREP::HepRepAttDef
virtual ~HepRepAttDef ()
 Destructor.
 
virtual std::string getName ()=0
 
virtual std::string getLowerCaseName ()=0
 
virtual std::string getDescription ()=0
 
virtual std::string getCategory ()=0
 
virtual std::string getExtra ()=0
 
virtual HepRepAttDefcopy ()=0
 

Detailed Description

Definition at line 17 of file DefaultHepRepAttDef.h.

Constructor & Destructor Documentation

◆ DefaultHepRepAttDef()

cheprep::DefaultHepRepAttDef::DefaultHepRepAttDef ( std::string  name,
std::string  desc,
std::string  category,
std::string  extra 
)

Definition at line 19 of file DefaultHepRepAttDef.cc.

20 : name(aName), desc(aDesc), category(aCategory), extra(anExtra) {
21}

◆ ~DefaultHepRepAttDef()

cheprep::DefaultHepRepAttDef::~DefaultHepRepAttDef ( )

Definition at line 23 of file DefaultHepRepAttDef.cc.

23 {
24}

Member Function Documentation

◆ copy()

HepRepAttDef * cheprep::DefaultHepRepAttDef::copy ( )
virtual

Returns a deep copy of this attdef.

Returns
copy of this attdef.

Implements HEPREP::HepRepAttDef.

Definition at line 26 of file DefaultHepRepAttDef.cc.

26 {
27 return new DefaultHepRepAttDef(name, desc, category, extra);
28}
DefaultHepRepAttDef(std::string name, std::string desc, std::string category, std::string extra)

◆ getCategory()

string cheprep::DefaultHepRepAttDef::getCategory ( )
virtual

Returns category of this attdef.

Returns
category.

Implements HEPREP::HepRepAttDef.

Definition at line 44 of file DefaultHepRepAttDef.cc.

44 {
45 return category;
46}

◆ getDescription()

string cheprep::DefaultHepRepAttDef::getDescription ( )
virtual

Returns a description of this attdef.

Returns
description.

Implements HEPREP::HepRepAttDef.

Definition at line 40 of file DefaultHepRepAttDef.cc.

40 {
41 return desc;
42}

◆ getExtra()

string cheprep::DefaultHepRepAttDef::getExtra ( )
virtual

Returns any extra information of this attdef.

Returns
extra info.

Implements HEPREP::HepRepAttDef.

Definition at line 48 of file DefaultHepRepAttDef.cc.

48 {
49 return extra;
50}

◆ getLowerCaseName()

string cheprep::DefaultHepRepAttDef::getLowerCaseName ( )
virtual

Returns the lowercased name of this attdef.

Returns
lowercased name.

Implements HEPREP::HepRepAttDef.

Definition at line 34 of file DefaultHepRepAttDef.cc.

34 {
35 string s = name;
36 transform(s.begin(), s.end(), s.begin(), (int(*)(int)) tolower);
37 return s;
38}

◆ getName()

string cheprep::DefaultHepRepAttDef::getName ( )
virtual

Returns the mixed case name of this attdef.

Returns
name.

Implements HEPREP::HepRepAttDef.

Definition at line 30 of file DefaultHepRepAttDef.cc.

30 {
31 return name;
32}

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