The Gaudi Framework  master (594c33fa)
Io::FileAttr Class Referencefinal

#include </builds/gaudi/Gaudi/GaudiKernel/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 171 of file IFileMgr.h.

Constructor & Destructor Documentation

◆ FileAttr() [1/2]

Io::FileAttr::FileAttr ( )
default

◆ FileAttr() [2/2]

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 174 of file IFileMgr.h.

175  : m_fd( f )
176  , m_name( std::move( n ) )
177  , m_desc( std::move( d ) )
178  , m_tech( t )
179  , m_flags( fa )
180  , m_iflags( fa )
181  , m_fptr( p )
182  , m_isOpen( o )
183  , m_shared( s ){};

Member Function Documentation

◆ desc() [1/2]

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

Definition at line 187 of file IFileMgr.h.

187 { return m_desc; }

◆ desc() [2/2]

void Io::FileAttr::desc ( const std::string d)
inline

Definition at line 197 of file IFileMgr.h.

197 { m_desc = d; }

◆ fd() [1/2]

Fd Io::FileAttr::fd ( ) const
inline

Definition at line 185 of file IFileMgr.h.

185 { return m_fd; }

◆ fd() [2/2]

void Io::FileAttr::fd ( Fd  f)
inline

Definition at line 195 of file IFileMgr.h.

195 { m_fd = f; }

◆ flags() [1/2]

IoFlags Io::FileAttr::flags ( ) const
inline

Definition at line 189 of file IFileMgr.h.

189 { return m_flags; }

◆ flags() [2/2]

void Io::FileAttr::flags ( const IoFlags f)
inline

Definition at line 199 of file IFileMgr.h.

199 { m_flags = f; }

◆ fptr() [1/2]

void* Io::FileAttr::fptr ( ) const
inline

Definition at line 191 of file IFileMgr.h.

191 { return m_fptr; }

◆ fptr() [2/2]

void Io::FileAttr::fptr ( void *  v)
inline

Definition at line 201 of file IFileMgr.h.

201 { m_fptr = v; }

◆ iflags() [1/2]

IoFlags Io::FileAttr::iflags ( ) const
inline

Definition at line 190 of file IFileMgr.h.

190 { return m_iflags; }

◆ iflags() [2/2]

void Io::FileAttr::iflags ( const IoFlags f)
inline

Definition at line 200 of file IFileMgr.h.

200 { m_iflags = f; }

◆ isOpen() [1/2]

bool Io::FileAttr::isOpen ( ) const
inline

Definition at line 192 of file IFileMgr.h.

192 { return m_isOpen; }

◆ isOpen() [2/2]

void Io::FileAttr::isOpen ( bool  b)
inline

Definition at line 202 of file IFileMgr.h.

202 { m_isOpen = b; }

◆ isShared() [1/2]

bool Io::FileAttr::isShared ( ) const
inline

Definition at line 193 of file IFileMgr.h.

193 { return m_shared; }

◆ isShared() [2/2]

void Io::FileAttr::isShared ( bool  s)
inline

Definition at line 203 of file IFileMgr.h.

203 { m_shared = s; }

◆ name() [1/2]

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

Definition at line 186 of file IFileMgr.h.

186 { return m_name; }

◆ name() [2/2]

void Io::FileAttr::name ( const std::string n)
inline

Definition at line 196 of file IFileMgr.h.

196 { m_name = n; }

◆ operator<()

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

Definition at line 217 of file IFileMgr.h.

217  {
218  if ( m_name != rhs.name() ) {
219  return ( m_name < rhs.name() );
220  } else {
221  return ( m_flags < rhs.iflags() );
222  }
223  }

◆ operator==()

bool Io::FileAttr::operator== ( const FileAttr fa) const
inline

Definition at line 212 of file IFileMgr.h.

212  {
213  return ( m_fd == fa.fd() && m_name == fa.name() && m_desc == fa.desc() && m_tech == fa.tech() &&
214  m_flags == fa.flags() && m_fptr == fa.fptr() && m_isOpen == fa.isOpen() && m_shared == fa.isShared() );
215  }

◆ tech() [1/2]

IoTech Io::FileAttr::tech ( ) const
inline

Definition at line 188 of file IFileMgr.h.

188 { return m_tech; }

◆ tech() [2/2]

void Io::FileAttr::tech ( const IoTech t)
inline

Definition at line 198 of file IFileMgr.h.

198 { m_tech = t; }

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 205 of file IFileMgr.h.

205  {
206  os << "name: \"" << fa.name() << "\" tech: " << fa.tech() << " desc: " << fa.desc()
207  << " flags: " << IoFlagName( fa.flags() ) << " i_flags: " << IoFlagName( fa.iflags() ) << " Fd: " << fa.fd()
208  << " ptr: " << fa.fptr() << ( fa.isOpen() ? " [o]" : " [c]" ) << ( fa.isShared() ? " [s]" : " [u]" );
209  return os;
210  }

Member Data Documentation

◆ m_desc

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

Definition at line 228 of file IFileMgr.h.

◆ m_fd

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

Definition at line 226 of file IFileMgr.h.

◆ m_flags

IoFlags Io::FileAttr::m_flags = INVALID
private

Definition at line 230 of file IFileMgr.h.

◆ m_fptr

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

Definition at line 232 of file IFileMgr.h.

◆ m_iflags

IoFlags Io::FileAttr::m_iflags = INVALID
private

Definition at line 231 of file IFileMgr.h.

◆ m_isOpen

bool Io::FileAttr::m_isOpen = false
private

Definition at line 233 of file IFileMgr.h.

◆ m_name

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

Definition at line 227 of file IFileMgr.h.

◆ m_shared

bool Io::FileAttr::m_shared = false
private

Definition at line 234 of file IFileMgr.h.

◆ m_tech

IoTech Io::FileAttr::m_tech = UNKNOWN
private

Definition at line 229 of file IFileMgr.h.


The documentation for this class was generated from the following file:
std::move
T move(T... args)
gaudirun.s
string s
Definition: gaudirun.py:346
Io::FileAttr::m_fd
Fd m_fd
Definition: IFileMgr.h:226
Io::FileAttr::m_tech
IoTech m_tech
Definition: IFileMgr.h:229
Io::FileAttr::m_flags
IoFlags m_flags
Definition: IFileMgr.h:230
bug_34121.t
t
Definition: bug_34121.py:31
Io::FileAttr::m_iflags
IoFlags m_iflags
Definition: IFileMgr.h:231
Io::FileAttr::m_fptr
void * m_fptr
Definition: IFileMgr.h:232
GaudiPluginService.cpluginsvc.n
n
Definition: cpluginsvc.py:234
Io::FileAttr::m_desc
std::string m_desc
Definition: IFileMgr.h:228
Io::FileAttr::m_isOpen
bool m_isOpen
Definition: IFileMgr.h:233
Io::FileAttr::m_name
std::string m_name
Definition: IFileMgr.h:227
Properties.v
v
Definition: Properties.py:122
Io::FileAttr::m_shared
bool m_shared
Definition: IFileMgr.h:234