Geant4
10.02.p03
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
17
namespace
cheprep
{
18
19
DefaultHepRepAttDef::DefaultHepRepAttDef(
string
aName,
string
aDesc,
string
aCategory,
string
anExtra)
20
:
name
(aName), desc(aDesc), category(aCategory), extra(anExtra) {
21
}
22
23
DefaultHepRepAttDef::~DefaultHepRepAttDef
() {
24
}
25
26
HepRepAttDef
*
DefaultHepRepAttDef::copy
() {
27
return
new
DefaultHepRepAttDef
(
name
,
desc
,
category
,
extra
);
28
}
29
30
string
DefaultHepRepAttDef::getName
() {
31
return
name
;
32
}
33
34
string
DefaultHepRepAttDef::getLowerCaseName
() {
35
string
s
=
name
;
36
transform(s.begin(), s.end(), s.begin(), (int(*)(int)) tolower);
37
return
s
;
38
}
39
40
string
DefaultHepRepAttDef::getDescription
() {
41
return
desc
;
42
}
43
44
string
DefaultHepRepAttDef::getCategory
() {
45
return
category
;
46
}
47
48
string
DefaultHepRepAttDef::getExtra
() {
49
return
extra
;
50
}
51
52
}
// cheprep
name
G4String name
Definition:
TRTMaterials.hh:40
std
cheprep::DefaultHepRepAttDef::getLowerCaseName
std::string getLowerCaseName()
Definition:
DefaultHepRepAttDef.cc:34
cheprep::DefaultHepRepAttDef::desc
std::string desc
Definition:
DefaultHepRepAttDef.h:20
cheprep::DefaultHepRepAttDef::category
std::string category
Definition:
DefaultHepRepAttDef.h:20
s
static const double s
Definition:
G4SIunits.hh:168
cheprep::DefaultHepRepAttDef::name
std::string name
Definition:
DefaultHepRepAttDef.h:20
cheprep::DefaultHepRepAttDef::getCategory
std::string getCategory()
Definition:
DefaultHepRepAttDef.cc:44
HEPREP::HepRepAttDef
Definition:
HepRepAttDef.h:21
cheprep::DefaultHepRepAttDef::extra
std::string extra
Definition:
DefaultHepRepAttDef.h:20
cheprep::DefaultHepRepAttDef::~DefaultHepRepAttDef
~DefaultHepRepAttDef()
Definition:
DefaultHepRepAttDef.cc:23
cheprep
Definition:
AbstractXMLWriter.h:13
HEPREP
Definition:
HasHepRep.h:12
DefaultHepRepAttDef.h
cheprep::DefaultHepRepAttDef::getExtra
std::string getExtra()
Definition:
DefaultHepRepAttDef.cc:48
cheprep::DefaultHepRepAttDef::getName
std::string getName()
Definition:
DefaultHepRepAttDef.cc:30
cheprep::DefaultHepRepAttDef::copy
HEPREP::HepRepAttDef * copy()
Definition:
DefaultHepRepAttDef.cc:26
cheprep::DefaultHepRepAttDef::DefaultHepRepAttDef
DefaultHepRepAttDef(std::string name, std::string desc, std::string category, std::string extra)
Definition:
DefaultHepRepAttDef.cc:19
cheprep::DefaultHepRepAttDef::getDescription
std::string getDescription()
Definition:
DefaultHepRepAttDef.cc:40
Geant4
Geant4.10.02.p03
source
visualization
HepRep
src
DefaultHepRepAttDef.cc
Generated by
1.8.13