Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cheprep::DefaultHepRepAttDef Class Reference

#include <DefaultHepRepAttDef.h>

Inheritance diagram for cheprep::DefaultHepRepAttDef:
Collaboration 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. More...
 

Detailed Description

Definition at line 17 of file DefaultHepRepAttDef.h.

Constructor & Destructor Documentation

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 }
const XML_Char * name
Definition: expat.h:151

Here is the caller graph for this function:

cheprep::DefaultHepRepAttDef::~DefaultHepRepAttDef ( )

Definition at line 23 of file DefaultHepRepAttDef.cc.

23  {
24 }

Member Function Documentation

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 }
const XML_Char * name
Definition: expat.h:151
DefaultHepRepAttDef(std::string name, std::string desc, std::string category, std::string extra)

Here is the call graph for this function:

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 }
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 }
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 }
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 }
const XML_Char * name
Definition: expat.h:151
const XML_Char * s
Definition: expat.h:262
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)

Here is the call graph for this function:

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 }
const XML_Char * name
Definition: expat.h:151

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