source: trunk/source/visualization/HepRep/include/cheprep/DefaultHepRepDefinition.h@ 847

Last change on this file since 847 was 834, checked in by garnier, 17 years ago

import all except CVS

  • Property svn:executable set to *
File size: 1.2 KB
Line 
1// Copyright FreeHEP, 2005.
2#ifndef CHEPREP_DEFAULTHEPREPDEFINITION_H
3#define CHEPREP_DEFAULTHEPREPDEFINITION_H 1
4
5#include "cheprep/config.h"
6
7#include <string>
8#include <vector>
9#include <set>
10
11#include "HEPREP/HepRepDefinition.h"
12#include "HEPREP/HepRepWriter.h"
13
14#include "DefaultHepRepAttribute.h"
15
16/**
17 * @author Mark Donszelmann
18 * @version $Id: DefaultHepRepDefinition.h,v 1.3 2005/06/02 21:28:45 duns Exp $
19 */
20namespace cheprep {
21
22class DefaultHepRepDefinition : public DefaultHepRepAttribute, public virtual HEPREP::HepRepDefinition {
23
24 private:
25 std::map<std::string, HEPREP::HepRepAttDef*> attDefs;
26
27 public:
28 DefaultHepRepDefinition();
29 ~DefaultHepRepDefinition();
30
31 void addAttDef(HEPREP::HepRepAttDef* hepRepAttDef);
32 void addAttDef(std::string name, std::string desc, std::string type, std::string extra);
33 std::set<HEPREP::HepRepAttDef *> getAttDefsFromNode();
34 HEPREP::HepRepAttDef* getAttDefFromNode(std::string lowerCaseName);
35
36 HEPREP::HepRepAttDef* getAttDef(std::string name) = 0;
37 HEPREP::HepRepAttValue* getAttValue(std::string name) = 0;
38};
39
40} // cheprep
41
42
43#endif
Note: See TracBrowser for help on using the repository browser.