ATLAS Offline Software
Loading...
Searching...
No Matches
RootReaderD3PDBase.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2
3/*
4 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5*/
6
7// $Id: RootReaderD3PDBase.h 462802 2011-10-12 16:06:24Z krasznaa $
8#ifndef D3PDMAKERREADER_ROOTREADERD3PDBASE_H
9#define D3PDMAKERREADER_ROOTREADERD3PDBASE_H
10
11// STL include(s):
12#include <string>
13#include <set>
14#include <vector>
15
16// D3PD include(s):
18
19// Local include(s):
20#include "IReaderD3PD.h"
21
22namespace D3PD {
23
39
40 public:
43
45 virtual StatusCode addVariable( const std::string& name,
46 const std::type_info& ti,
47 void*& ptr,
48 const std::string& docstring = "",
49 const void* defval = 0 );
51 virtual StatusCode addDimensionedVariable( const std::string& name,
52 const std::type_info& ti,
53 void*& ptr,
54 const std::string& dim,
55 const std::string& docstring = "",
56 const void* defval = 0 );
57
59 virtual StatusCode addMetadata( const std::string& key,
60 const void* obj,
61 const std::type_info& ti );
62
64 virtual StatusCode capture();
66 virtual StatusCode clear();
68 virtual StatusCode redim( const Dim_t* ptr );
69
71 virtual void setIsContainer( bool isContainer );
73 virtual bool isContainer() const;
74
76 virtual void setPrefix( const std::string& prefix );
78 virtual const std::string& prefix() const;
79
80 protected:
82 void addSTLHeader( std::ostream& out, const char* name ) const;
83
85
86 }; // class RootReaderD3PDBase
87
88} // namespace D3PD
89
90#endif // D3PDMAKERREADER_ROOTREADERD3PDBASE_H
unsigned int Dim_t
Currently unimplemented — see design note.
Definition ID3PD.h:52
Common interface for the code generator D3PD classes.
Definition IReaderD3PD.h:29
D3PD variable metadata handling class.
virtual StatusCode redim(const Dim_t *ptr)
Function currently not used by the D3PDMaker code.
virtual StatusCode addDimensionedVariable(const std::string &name, const std::type_info &ti, void *&ptr, const std::string &dim, const std::string &docstring="", const void *defval=0)
Function currently not used by the D3PDMaker code.
virtual bool isContainer() const
Get the "isCollection" parameter of the object.
virtual StatusCode addMetadata(const std::string &key, const void *obj, const std::type_info &ti)
Function adding metadata to the D3PD. Not implemented here!
void addSTLHeader(std::ostream &out, const char *name) const
Function adding STL include statements to the header when needed.
virtual void setPrefix(const std::string &prefix)
Set the common prefix of the variables.
virtual const std::string & prefix() const
Get the common prefix of the variables.
virtual StatusCode clear()
Function clearing the D3PD variables. Not implemented here!
RootReaderD3PDBase()
Quite empty constructor.
virtual void setIsContainer(bool isContainer)
Set the "isCollection" parameter of the object.
virtual StatusCode addVariable(const std::string &name, const std::type_info &ti, void *&ptr, const std::string &docstring="", const void *defval=0)
Main function for adding a variable to the D3PD.
virtual StatusCode capture()
Function capturing the current value of the D3PD variables. Not implemented here!
ObjectMetadata m_metadata
Object holding the information about the variables.
Block filler tool for noisy FEB information.