PandaRoot
PndDocuSample.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 #ifndef PNDDOCUSAMPLE_H
14 #define PNDDOCUSAMPLE_H
15 
16 #include <string>
17 
18 #include "TObject.h"
19 
95  public:
99  PndDocuSample();
108  PndDocuSample(std::string _s, int _i);
109  ~PndDocuSample();
110 
123  void SetString(std::string _s) { fString = _s; };
130  void SetNumber(int _i) { fNumber = _i; };
131 
136  std::string GetString() { return fString; };
141  int GetNumber() { return fNumber; };
142 
147  void PrintValues();
148  void AddString();
149  void SquareNumber();
150 
151  private:
152  bool fInitialized;
153 
159  std::string fString;
160  int fNumber;
161  Int_t fTransient;
162  // As long as CLASSIMP is not set, the ClassDef() and ClassImp() macros are excluded from the documentation
164  ClassDef(PndDocuSample, 1);
165 
166 };
167 
168 #endif // PNDDOCUSAMPLE_H
PndDocuSample()
Default constructor does not need much of a description.
void PrintValues()
You can either document in the header file...
void SetString(std::string _s)
Set the string.
void SquareNumber()
Documentation Sample Class.
Definition: PndDocuSample.h:94
void AddString()
~PndDocuSample()
Default destructor.
int GetNumber()
Return the current number.
std::string GetString()
Returns the current string.
void SetNumber(int _i)
Set the number.