FairRoot/PandaRoot
PndDocuSample.h
Go to the documentation of this file.
1 #ifndef PNDDOCUSAMPLE_H
2 #define PNDDOCUSAMPLE_H
3 
4 #include <string>
5 
6 #include "TObject.h"
7 
78 public:
82  PndDocuSample();
91  PndDocuSample(std::string _s, int _i);
92  ~PndDocuSample();
93 
105  void SetString(std::string _s) { fString = _s; };
112  void SetNumber(int _i) { fNumber = _i; };
113 
118  std::string GetString() { return fString; };
123  int GetNumber() { return fNumber; };
124 
129  void PrintValues();
130  void AddString();
131  void SquareNumber();
132 
133 private:
135 
141  std::string fString;
142  int fNumber;
143  Int_t fTransient;
144  // As long as CLASSIMP is not set, the ClassDef() and ClassImp() macros are excluded from the documentation
146  ClassDef(PndDocuSample, 1);
147 
148 };
149 
150 #endif // PNDDOCUSAMPLE_H
PndDocuSample()
Default constructor does not need much of a description.
void PrintValues()
You can either document in the header file...
Int_t fTransient
! A transient member
std::string fString
This more verbose method can be used as well.
void SetString(std::string _s)
Set the string.
int fNumber
This is the fastest, though.
void SquareNumber()
Squares the current number.
Documentation Sample Class.
Definition: PndDocuSample.h:77
void AddString()
Adds the current string to itself.
~PndDocuSample()
Default destructor.
int GetNumber()
Return the current number.
bool fInitialized
Easiest way to document data member variables.
std::string GetString()
Returns the current string.
void SetNumber(int _i)
Set the number.