The Gaudi Framework  master (ff829712)
Loading...
Searching...
No Matches
NTuple::File Class Reference

Small class representing an N tuple file in the transient store. More...

#include </builds/gaudi/Gaudi/GaudiKernel/include/GaudiKernel/NTuple.h>

Inheritance diagram for NTuple::File:
Collaboration diagram for NTuple::File:

Public Member Functions

 File ()=default
 
 File (long type, std::string name, std::string logName)
 Standard constructor.
 
const CLIDclID () const override
 class ID of the object
 
void setType (const long typ)
 Set access type.
 
long type () const
 Return access type.
 
const std::string & name () const
 Retrun physical file name.
 
void setName (std::string nam)
 Set access type.
 
const std::string & logicalName () const
 
void setLogicalName (std::string l)
 
void setOpen (bool flag)
 Set "open" flag.
 
bool isOpen () const
 Access "open" flag.
 
- Public Member Functions inherited from DataObject
 DataObject ()
 Standard Constructor.
 
 DataObject (const DataObject &rhs)
 Copy Constructor.
 
DataObjectoperator= (const DataObject &rhs)
 Assignment Operator.
 
 DataObject (DataObject &&rhs)
 Move Constructor.
 
DataObjectoperator= (DataObject &&rhs)
 Move Assignment Operator.
 
virtual ~DataObject ()
 Standard Destructor.
 
virtual unsigned long addRef ()
 Add reference to object.
 
virtual unsigned long release ()
 release reference to object
 
const std::string & name () const
 Retreive DataObject name. It is the name when registered in the store.
 
virtual StatusCode update ()
 Provide empty placeholder for internal object reconfiguration callback.
 
void setRegistry (IRegistry *pRegistry)
 Set pointer to Registry.
 
IRegistryregistry () const
 Get pointer to Registry.
 
LinkManagerlinkMgr ()
 Retrieve Link manager.
 
const LinkManagerlinkMgr () const
 
unsigned char version () const
 Retrieve version number of this object representation.
 
void setVersion (unsigned char vsn)
 Set version number of this object representation.
 
unsigned long refCount () const
 Return the refcount.
 
virtual std::ostream & fillStream (std::ostream &s) const
 Fill the output stream (ASCII)
 

Static Public Member Functions

static const CLIDclassID ()
 class ID of the object
 
- Static Public Member Functions inherited from NTuple::Directory
static const CLIDclassID ()
 class ID of the object
 
- Static Public Member Functions inherited from DataObject
static const CLIDclassID ()
 Retrieve reference to class definition structure (static access)
 

Protected Attributes

std::string m_name
 Physical file name.
 
std::string m_logName
 Logical file name.
 
long m_type = 0
 Access type.
 
bool m_isOpen = false
 Flag to indicate wether the file was opened already.
 

Detailed Description

Small class representing an N tuple file in the transient store.

Definition at line 915 of file NTuple.h.

Constructor & Destructor Documentation

◆ File() [1/2]

NTuple::File::File ( )
default

◆ File() [2/2]

NTuple::File::File ( long type,
std::string name,
std::string logName )
inline

Standard constructor.

Definition at line 929 of file NTuple.h.

930 : m_name( std::move( name ) ), m_logName( std::move( logName ) ), m_type( type ) {}
std::string m_name
Physical file name.
Definition NTuple.h:918
long m_type
Access type.
Definition NTuple.h:922
std::string m_logName
Logical file name.
Definition NTuple.h:920
long type() const
Return access type.
Definition NTuple.h:939
const std::string & name() const
Retrun physical file name.
Definition NTuple.h:941

Member Function Documentation

◆ classID()

static const CLID & NTuple::File::classID ( )
inlinestatic

class ID of the object

Definition at line 933 of file NTuple.h.

933{ return CLID_NTupleFile; }

◆ clID()

const CLID & NTuple::File::clID ( ) const
inlineoverridevirtual

class ID of the object

Reimplemented from NTuple::Directory.

Definition at line 935 of file NTuple.h.

935{ return classID(); }
static const CLID & classID()
class ID of the object
Definition NTuple.h:933

◆ isOpen()

bool NTuple::File::isOpen ( ) const
inline

Access "open" flag.

Definition at line 951 of file NTuple.h.

951{ return m_isOpen; }
bool m_isOpen
Flag to indicate wether the file was opened already.
Definition NTuple.h:924

◆ logicalName()

const std::string & NTuple::File::logicalName ( ) const
inline

Definition at line 945 of file NTuple.h.

945{ return m_logName; }

◆ name()

const std::string & NTuple::File::name ( ) const
inline

Retrun physical file name.

Definition at line 941 of file NTuple.h.

941{ return m_name; }

◆ setLogicalName()

void NTuple::File::setLogicalName ( std::string l)
inline

Definition at line 947 of file NTuple.h.

947{ m_logName = std::move( l ); }

◆ setName()

void NTuple::File::setName ( std::string nam)
inline

Set access type.

Definition at line 943 of file NTuple.h.

943{ m_name = std::move( nam ); }

◆ setOpen()

void NTuple::File::setOpen ( bool flag)
inline

Set "open" flag.

Definition at line 949 of file NTuple.h.

949{ m_isOpen = flag; }

◆ setType()

void NTuple::File::setType ( const long typ)
inline

Set access type.

Definition at line 937 of file NTuple.h.

937{ m_type = typ; }

◆ type()

long NTuple::File::type ( ) const
inline

Return access type.

Definition at line 939 of file NTuple.h.

939{ return m_type; }

Member Data Documentation

◆ m_isOpen

bool NTuple::File::m_isOpen = false
protected

Flag to indicate wether the file was opened already.

Definition at line 924 of file NTuple.h.

◆ m_logName

std::string NTuple::File::m_logName
protected

Logical file name.

Definition at line 920 of file NTuple.h.

◆ m_name

std::string NTuple::File::m_name
protected

Physical file name.

Definition at line 918 of file NTuple.h.

◆ m_type

long NTuple::File::m_type = 0
protected

Access type.

Definition at line 922 of file NTuple.h.


The documentation for this class was generated from the following file: