The Gaudi Framework  v30r3 (a5ef0a68)
Io::FileAttr Class Referencefinal

#include <GaudiKernel/IFileMgr.h>

Collaboration diagram for Io::FileAttr:

Public Member Functions

 FileAttr ()=default
 
 FileAttr (Fd f, std::string n, std::string d, IoTech t, IoFlags fa, void *p, bool o, bool s=false)
 
Fd fd () const
 
const std::stringname () const
 
const std::stringdesc () const
 
IoTech tech () const
 
IoFlags flags () const
 
IoFlags iflags () const
 
void * fptr () const
 
bool isOpen () const
 
bool isShared () const
 
void fd (Fd f)
 
void name (const std::string &n)
 
void desc (const std::string &d)
 
void tech (const IoTech &t)
 
void flags (const IoFlags &f)
 
void iflags (const IoFlags &f)
 
void fptr (void *v)
 
void isOpen (bool b)
 
void isShared (bool s)
 
bool operator== (const FileAttr &fa) const
 
bool operator< (const FileAttr &rhs) const
 

Private Attributes

Fd m_fd = -1
 
std::string m_name
 
std::string m_desc
 
IoTech m_tech = UNKNOWN
 
IoFlags m_flags = INVALID
 
IoFlags m_iflags = INVALID
 
void * m_fptr = nullptr
 
bool m_isOpen = false
 
bool m_shared = false
 

Friends

std::ostreamoperator<< (std::ostream &os, const FileAttr &fa)
 

Detailed Description

Definition at line 174 of file IFileMgr.h.

Constructor & Destructor Documentation

Io::FileAttr::FileAttr ( )
default
Io::FileAttr::FileAttr ( Fd  f,
std::string  n,
std::string  d,
IoTech  t,
IoFlags  fa,
void *  p,
bool  o,
bool  s = false 
)
inline

Definition at line 178 of file IFileMgr.h.

179  : m_fd( f )
180  , m_name( std::move( n ) )
181  , m_desc( std::move( d ) )
182  , m_tech( t )
183  , m_flags( fa )
184  , m_iflags( fa )
185  , m_fptr( p )
186  , m_isOpen( o )
187  , m_shared( s ){};
IoFlags m_flags
Definition: IFileMgr.h:237
IoTech m_tech
Definition: IFileMgr.h:236
IoFlags m_iflags
Definition: IFileMgr.h:238
void * m_fptr
Definition: IFileMgr.h:239
bool m_isOpen
Definition: IFileMgr.h:240
std::string m_desc
Definition: IFileMgr.h:235
T move(T...args)
string s
Definition: gaudirun.py:253
std::string m_name
Definition: IFileMgr.h:234
bool m_shared
Definition: IFileMgr.h:241

Member Function Documentation

const std::string& Io::FileAttr::desc ( ) const
inline

Definition at line 191 of file IFileMgr.h.

191 { return m_desc; }
std::string m_desc
Definition: IFileMgr.h:235
void Io::FileAttr::desc ( const std::string d)
inline

Definition at line 201 of file IFileMgr.h.

201 { m_desc = d; }
std::string m_desc
Definition: IFileMgr.h:235
Fd Io::FileAttr::fd ( ) const
inline

Definition at line 189 of file IFileMgr.h.

189 { return m_fd; }
void Io::FileAttr::fd ( Fd  f)
inline

Definition at line 199 of file IFileMgr.h.

199 { m_fd = f; }
IoFlags Io::FileAttr::flags ( ) const
inline

Definition at line 193 of file IFileMgr.h.

193 { return m_flags; }
IoFlags m_flags
Definition: IFileMgr.h:237
void Io::FileAttr::flags ( const IoFlags f)
inline

Definition at line 203 of file IFileMgr.h.

203 { m_flags = f; }
IoFlags m_flags
Definition: IFileMgr.h:237
void* Io::FileAttr::fptr ( ) const
inline

Definition at line 195 of file IFileMgr.h.

195 { return m_fptr; }
void * m_fptr
Definition: IFileMgr.h:239
void Io::FileAttr::fptr ( void *  v)
inline

Definition at line 205 of file IFileMgr.h.

205 { m_fptr = v; }
void * m_fptr
Definition: IFileMgr.h:239
IoFlags Io::FileAttr::iflags ( ) const
inline

Definition at line 194 of file IFileMgr.h.

194 { return m_iflags; }
IoFlags m_iflags
Definition: IFileMgr.h:238
void Io::FileAttr::iflags ( const IoFlags f)
inline

Definition at line 204 of file IFileMgr.h.

204 { m_iflags = f; }
IoFlags m_iflags
Definition: IFileMgr.h:238
bool Io::FileAttr::isOpen ( ) const
inline

Definition at line 196 of file IFileMgr.h.

196 { return m_isOpen; }
bool m_isOpen
Definition: IFileMgr.h:240
void Io::FileAttr::isOpen ( bool  b)
inline

Definition at line 206 of file IFileMgr.h.

206 { m_isOpen = b; }
bool m_isOpen
Definition: IFileMgr.h:240
bool Io::FileAttr::isShared ( ) const
inline

Definition at line 197 of file IFileMgr.h.

197 { return m_shared; }
bool m_shared
Definition: IFileMgr.h:241
void Io::FileAttr::isShared ( bool  s)
inline

Definition at line 207 of file IFileMgr.h.

207 { m_shared = s; }
string s
Definition: gaudirun.py:253
bool m_shared
Definition: IFileMgr.h:241
const std::string& Io::FileAttr::name ( ) const
inline

Definition at line 190 of file IFileMgr.h.

190 { return m_name; }
std::string m_name
Definition: IFileMgr.h:234
void Io::FileAttr::name ( const std::string n)
inline

Definition at line 200 of file IFileMgr.h.

bool Io::FileAttr::operator< ( const FileAttr rhs) const
inline

Definition at line 223 of file IFileMgr.h.

224  {
225  if ( m_name != rhs.name() ) {
226  return ( m_name < rhs.name() );
227  } else {
228  return ( m_flags < rhs.iflags() );
229  }
230  }
IoFlags m_flags
Definition: IFileMgr.h:237
std::string m_name
Definition: IFileMgr.h:234
bool Io::FileAttr::operator== ( const FileAttr fa) const
inline

Definition at line 217 of file IFileMgr.h.

218  {
219  return ( m_fd == fa.fd() && m_name == fa.name() && m_desc == fa.desc() && m_tech == fa.tech() &&
220  m_flags == fa.flags() && m_fptr == fa.fptr() && m_isOpen == fa.isOpen() && m_shared == fa.isShared() );
221  }
IoFlags m_flags
Definition: IFileMgr.h:237
IoTech m_tech
Definition: IFileMgr.h:236
void * m_fptr
Definition: IFileMgr.h:239
bool m_isOpen
Definition: IFileMgr.h:240
std::string m_desc
Definition: IFileMgr.h:235
std::string m_name
Definition: IFileMgr.h:234
bool m_shared
Definition: IFileMgr.h:241
IoTech Io::FileAttr::tech ( ) const
inline

Definition at line 192 of file IFileMgr.h.

192 { return m_tech; }
IoTech m_tech
Definition: IFileMgr.h:236
void Io::FileAttr::tech ( const IoTech t)
inline

Definition at line 202 of file IFileMgr.h.

202 { m_tech = t; }
IoTech m_tech
Definition: IFileMgr.h:236

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream os,
const FileAttr fa 
)
friend

Definition at line 209 of file IFileMgr.h.

210  {
211  os << "name: \"" << fa.name() << "\" tech: " << fa.tech() << " desc: " << fa.desc()
212  << " flags: " << IoFlagName( fa.flags() ) << " i_flags: " << IoFlagName( fa.iflags() ) << " Fd: " << fa.fd()
213  << " ptr: " << fa.fptr() << ( fa.isOpen() ? " [o]" : " [c]" ) << ( fa.isShared() ? " [s]" : " [u]" );
214  return os;
215  }

Member Data Documentation

std::string Io::FileAttr::m_desc
private

Definition at line 235 of file IFileMgr.h.

Fd Io::FileAttr::m_fd = -1
private

Definition at line 233 of file IFileMgr.h.

IoFlags Io::FileAttr::m_flags = INVALID
private

Definition at line 237 of file IFileMgr.h.

void* Io::FileAttr::m_fptr = nullptr
private

Definition at line 239 of file IFileMgr.h.

IoFlags Io::FileAttr::m_iflags = INVALID
private

Definition at line 238 of file IFileMgr.h.

bool Io::FileAttr::m_isOpen = false
private

Definition at line 240 of file IFileMgr.h.

std::string Io::FileAttr::m_name
private

Definition at line 234 of file IFileMgr.h.

bool Io::FileAttr::m_shared = false
private

Definition at line 241 of file IFileMgr.h.

IoTech Io::FileAttr::m_tech = UNKNOWN
private

Definition at line 236 of file IFileMgr.h.


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