| Line | |
|---|
| 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 | * @version $Id: DefaultHepRepAttDef.cc,v 1.8 2005/06/02 21:28:45 duns Exp $
|
|---|
| 16 | */
|
|---|
| 17 | namespace cheprep {
|
|---|
| 18 |
|
|---|
| 19 | DefaultHepRepAttDef::DefaultHepRepAttDef(string name, string desc, string category, string extra)
|
|---|
| 20 | : name(name), desc(desc), category(category), extra(extra) {
|
|---|
| 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
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.