Geant4
10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
DefaultHepRepAttDef.cc
Go to the documentation of this file.
1
// Copyright FreeHEP, 2005.
2
3
#include <iostream>
4
#include <cstring>
5
#include <cctype>
6
#include <algorithm>
7
8
#include "
cheprep/DefaultHepRepAttDef.h
"
9
10
using namespace
std;
11
using namespace
HEPREP
;
12
13
/**
14
* @author Mark Donszelmann
15
*/
16
namespace
cheprep
{
17
18
DefaultHepRepAttDef::DefaultHepRepAttDef
(
string
aName,
string
aDesc,
string
aCategory,
string
anExtra)
19
: name(aName), desc(aDesc), category(aCategory), extra(anExtra) {
20
}
21
22
DefaultHepRepAttDef::~DefaultHepRepAttDef
() {
23
}
24
25
HepRepAttDef
*
DefaultHepRepAttDef::copy
() {
26
return
new
DefaultHepRepAttDef
(name, desc, category, extra);
27
}
28
29
string
DefaultHepRepAttDef::getName
() {
30
return
name;
31
}
32
33
string
DefaultHepRepAttDef::getLowerCaseName
() {
34
string
s = name;
35
transform(s.begin(), s.end(), s.begin(), (
int
(*)(
int
)) tolower);
36
return
s;
37
}
38
39
string
DefaultHepRepAttDef::getDescription
() {
40
return
desc;
41
}
42
43
string
DefaultHepRepAttDef::getCategory
() {
44
return
category;
45
}
46
47
string
DefaultHepRepAttDef::getExtra
() {
48
return
extra;
49
}
50
51
}
// cheprep
DefaultHepRepAttDef.h
HEPREP::HepRepAttDef
Definition:
HepRepAttDef.h:21
cheprep::DefaultHepRepAttDef
Definition:
DefaultHepRepAttDef.h:16
cheprep::DefaultHepRepAttDef::~DefaultHepRepAttDef
~DefaultHepRepAttDef()
Definition:
DefaultHepRepAttDef.cc:22
cheprep::DefaultHepRepAttDef::getCategory
std::string getCategory()
Definition:
DefaultHepRepAttDef.cc:43
cheprep::DefaultHepRepAttDef::getExtra
std::string getExtra()
Definition:
DefaultHepRepAttDef.cc:47
cheprep::DefaultHepRepAttDef::getName
std::string getName()
Definition:
DefaultHepRepAttDef.cc:29
cheprep::DefaultHepRepAttDef::getDescription
std::string getDescription()
Definition:
DefaultHepRepAttDef.cc:39
cheprep::DefaultHepRepAttDef::copy
HEPREP::HepRepAttDef * copy()
Definition:
DefaultHepRepAttDef.cc:25
cheprep::DefaultHepRepAttDef::getLowerCaseName
std::string getLowerCaseName()
Definition:
DefaultHepRepAttDef.cc:33
cheprep::DefaultHepRepAttDef::DefaultHepRepAttDef
DefaultHepRepAttDef(std::string name, std::string desc, std::string category, std::string extra)
Definition:
DefaultHepRepAttDef.cc:18
HEPREP
Definition:
HasHepRep.h:12
cheprep
Definition:
AbstractXMLWriter.h:12
geant4-v10.7.0
source
visualization
HepRep
src
DefaultHepRepAttDef.cc
Generated by
1.9.6