PandaRoot
PndContainerBaseI.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 
27 #ifndef PNDCONTAINERBASEI_H
28 #define PNDCONTAINERBASEI_H
29 
30 #include <vector>
31 
32 #include "TString.h"
33 
35 
36  public:
48  virtual ~PndContainerBaseI(){};
49 
55  virtual ssize_t GetSize() const = 0;
56 
62  const TString &GetBranchName() const { return fBranchName; }
63 
69  void SetBranchName(const TString &t_branchname) { fBranchName = t_branchname; }
70 
71  protected:
72  TString fBranchName{""};
73 };
74 
75 #endif /*PNDCONTAINERBASEI_H*/
const TString & GetBranchName() const
Get the BranchName.
virtual ssize_t GetSize() const =0
Get the number of members in internal data.
virtual ~PndContainerBaseI()
Destroy the PndContainerBaseI object.
void SetBranchName(const TString &t_branchname)
Set the Branch Name.
PndContainerBaseI()
Construct a new PndContainerBaseI object.