All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Io::FileAttr Class Reference

#include <GaudiKernel/IFileMgr.h>

Collaboration diagram for Io::FileAttr:

Public Member Functions

 FileAttr ()
 
 FileAttr (Fd f, const std::string &n, const std::string &d, IoTech t, IoFlags fa, void *p, bool o, bool s=false)
 
Fd fd () const
 
const std::string & name () const
 
const std::string & desc () 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
 
std::string m_name
 
std::string m_desc
 
IoTech m_tech
 
IoFlags m_flags
 
IoFlags m_iflags
 
void * m_fptr
 
bool m_isOpen
 
bool m_shared
 

Friends

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

Detailed Description

Definition at line 199 of file IFileMgr.h.

Constructor & Destructor Documentation

Io::FileAttr::FileAttr ( )
inline

Definition at line 202 of file IFileMgr.h.

202  :m_fd(-1),m_name(""),m_desc(""),m_tech(UNKNOWN),m_flags(INVALID),
203  m_iflags(INVALID),m_fptr(0),m_isOpen(false), m_shared(false){};
IoFlags m_flags
Definition: IFileMgr.h:263
IoTech m_tech
Definition: IFileMgr.h:262
IoFlags m_iflags
Definition: IFileMgr.h:264
void * m_fptr
Definition: IFileMgr.h:265
bool m_isOpen
Definition: IFileMgr.h:266
std::string m_desc
Definition: IFileMgr.h:261
std::string m_name
Definition: IFileMgr.h:260
bool m_shared
Definition: IFileMgr.h:267
Io::FileAttr::FileAttr ( Fd  f,
const std::string &  n,
const std::string &  d,
IoTech  t,
IoFlags  fa,
void *  p,
bool  o,
bool  s = false 
)
inline

Definition at line 204 of file IFileMgr.h.

205  :
206  m_fd(f),m_name(n),m_desc(d),m_tech(t),m_flags(fa),m_iflags(fa),m_fptr(p),
207  m_isOpen(o),m_shared(s){};
IoFlags m_flags
Definition: IFileMgr.h:263
IoTech m_tech
Definition: IFileMgr.h:262
IoFlags m_iflags
Definition: IFileMgr.h:264
void * m_fptr
Definition: IFileMgr.h:265
bool m_isOpen
Definition: IFileMgr.h:266
std::string m_desc
Definition: IFileMgr.h:261
string s
Definition: gaudirun.py:210
std::string m_name
Definition: IFileMgr.h:260
bool m_shared
Definition: IFileMgr.h:267

Member Function Documentation

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

Definition at line 211 of file IFileMgr.h.

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

Definition at line 222 of file IFileMgr.h.

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

Definition at line 209 of file IFileMgr.h.

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

Definition at line 220 of file IFileMgr.h.

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

Definition at line 213 of file IFileMgr.h.

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

Definition at line 224 of file IFileMgr.h.

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

Definition at line 215 of file IFileMgr.h.

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

Definition at line 226 of file IFileMgr.h.

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

Definition at line 214 of file IFileMgr.h.

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

Definition at line 225 of file IFileMgr.h.

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

Definition at line 216 of file IFileMgr.h.

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

Definition at line 227 of file IFileMgr.h.

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

Definition at line 217 of file IFileMgr.h.

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

Definition at line 228 of file IFileMgr.h.

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

Definition at line 210 of file IFileMgr.h.

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

Definition at line 221 of file IFileMgr.h.

221 { m_name = n; }
std::string m_name
Definition: IFileMgr.h:260
bool Io::FileAttr::operator< ( const FileAttr rhs) const
inline

Definition at line 249 of file IFileMgr.h.

249  {
250  if ( m_name != rhs.name() ) {
251  return ( m_name < rhs.name() );
252  } else {
253  return ( m_flags < rhs.iflags() );
254  }
255  }
IoFlags m_flags
Definition: IFileMgr.h:263
std::string m_name
Definition: IFileMgr.h:260
bool Io::FileAttr::operator== ( const FileAttr fa) const
inline

Definition at line 243 of file IFileMgr.h.

243  {
244  return ( m_fd==fa.fd() && m_name==fa.name() && m_desc==fa.desc() &&
245  m_tech==fa.tech() && m_flags==fa.flags() && m_fptr==fa.fptr() &&
246  m_isOpen==fa.isOpen() && m_shared==fa.isShared() );
247  }
IoFlags m_flags
Definition: IFileMgr.h:263
IoTech m_tech
Definition: IFileMgr.h:262
void * m_fptr
Definition: IFileMgr.h:265
bool m_isOpen
Definition: IFileMgr.h:266
std::string m_desc
Definition: IFileMgr.h:261
std::string m_name
Definition: IFileMgr.h:260
bool m_shared
Definition: IFileMgr.h:267
IoTech Io::FileAttr::tech ( ) const
inline

Definition at line 212 of file IFileMgr.h.

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

Definition at line 223 of file IFileMgr.h.

223 { m_tech = t;}
IoTech m_tech
Definition: IFileMgr.h:262

Friends And Related Function Documentation

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

Definition at line 231 of file IFileMgr.h.

231  {
232  os << "name: \"" << fa.name() << "\" tech: " << fa.tech()
233  << " desc: " << fa.desc()
234  << " flags: " << IoFlagName(fa.flags())
235  << " i_flags: " << IoFlagName(fa.iflags())
236  << " Fd: " << fa.fd() << " ptr: " << fa.fptr()
237  << (fa.isOpen() ? " [o]" : " [c]" )
238  << (fa.isShared() ? " [s]" : " [u]" );
239 
240  return os;
241  }

Member Data Documentation

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

Definition at line 261 of file IFileMgr.h.

Fd Io::FileAttr::m_fd
private

Definition at line 259 of file IFileMgr.h.

IoFlags Io::FileAttr::m_flags
private

Definition at line 263 of file IFileMgr.h.

void* Io::FileAttr::m_fptr
private

Definition at line 265 of file IFileMgr.h.

IoFlags Io::FileAttr::m_iflags
private

Definition at line 264 of file IFileMgr.h.

bool Io::FileAttr::m_isOpen
private

Definition at line 266 of file IFileMgr.h.

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

Definition at line 260 of file IFileMgr.h.

bool Io::FileAttr::m_shared
private

Definition at line 267 of file IFileMgr.h.

IoTech Io::FileAttr::m_tech
private

Definition at line 262 of file IFileMgr.h.


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