Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
cheprep::DefaultHepRepAttDef Class Reference

#include <DefaultHepRepAttDef.h>

Inheritance diagram for cheprep::DefaultHepRepAttDef:
HEPREP::HepRepAttDef

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.

Referenced by copy().

20  : name(aName), desc(aDesc), category(aCategory), extra(anExtra) {
21 }
const XML_Char * name
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.

References DefaultHepRepAttDef().

26  {
27  return new DefaultHepRepAttDef(name, desc, category, extra);
28 }
const XML_Char * name
DefaultHepRepAttDef(std::string name, std::string desc, std::string category, std::string extra)
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.

References int().

34  {
35  string s = name;
36  transform(s.begin(), s.end(), s.begin(), (int(*)(int)) tolower);
37  return s;
38 }
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
const XML_Char * s
const XML_Char * name
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

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