g4tools  5.4.0
plottable
Go to the documentation of this file.
1 // Copyright (C) 2010, Guy Barrand. All rights reserved.
2 // See the file tools.license for terms.
3 
4 #ifndef tools_sg_plottable
5 #define tools_sg_plottable
6 
7 #include <string>
8 
9 #include "../scast"
10 #include "../S_STRING"
11 
12 namespace tools {
13 namespace sg {
14 
15 class plottable {
16 public:
18 public:
19  virtual void* cast(const std::string& a_class) const {
20  if(void* p = cmp_cast<plottable>(this,a_class)) {return p;}
21  return 0;
22  }
23 public:
24  virtual ~plottable() {}
25 public:
26  virtual plottable* copy() const = 0;
27  virtual bool is_valid() const = 0;
28  virtual void infos(const std::string&,std::string&) const = 0;
29 
30  virtual const std::string& name() const = 0;
31  virtual void set_name(const std::string&) = 0;
32 
33  virtual const std::string& title() const = 0;
34  virtual const std::string& legend() const = 0;
35  virtual void set_legend(const std::string&) = 0;
36 
37  //virtual unsigned int dimension() const = 0;
38 };
39 
40 class plotprim {
41 public:
42  virtual ~plotprim(){}
43 public:
44  virtual void* cast(const std::string&) const = 0;
45  virtual plotprim* copy() const = 0;
46 };
47 
48 }}
49 
50 #endif
tools::sg::plottable::set_name
virtual void set_name(const std::string &)=0
tools::sg::plottable::cast
virtual void * cast(const std::string &a_class) const
Definition: plottable:19
tools::sg::plottable::legend
virtual const std::string & legend() const =0
tools::sg::plottable
Definition: plottable:15
tools::sg::plottable::infos
virtual void infos(const std::string &, std::string &) const =0
tools::sg::plotprim
Definition: plottable:40
TOOLS_SCLASS
#define TOOLS_SCLASS(a_name)
Definition: S_STRING:41
tools::sg::plottable::set_legend
virtual void set_legend(const std::string &)=0
tools::sg::plottable::copy
virtual plottable * copy() const =0
tools
inlined C code : ///////////////////////////////////
Definition: aida_ntuple:26
tools::sg::plottable::name
virtual const std::string & name() const =0
tools::sg::plotprim::cast
virtual void * cast(const std::string &) const =0
tools::sg::plotprim::copy
virtual plotprim * copy() const =0
tools::sg::plottable::is_valid
virtual bool is_valid() const =0
tools::sg::plotprim::~plotprim
virtual ~plotprim()
Definition: plottable:42
tools::sg::plottable::~plottable
virtual ~plottable()
Definition: plottable:24
tools::sg::plottable::title
virtual const std::string & title() const =0