| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | Friends | List of all members
Io::FileAttr Class Reference

`#include <IFileMgr.h>`

Collaboration diagram for Io::FileAttr:
[legend]

## 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.

:m_fd(-1),m_name(""),m_desc(""),m_tech(UNKNOWN),m_flags(INVALID),
m_iflags(INVALID),m_fptr(0),m_isOpen(false), m_shared(false){};

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.

:
m_fd(f),m_name(n),m_desc(d),m_tech(t),m_flags(fa),m_iflags(fa),m_fptr(p),
m_isOpen(o),m_shared(s){};

## Member Function Documentation

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

Definition at line 211 of file IFileMgr.h.

{ return m_desc; }

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

Definition at line 222 of file IFileMgr.h.

{ m_desc = d; }

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

Definition at line 209 of file IFileMgr.h.

{ return m_fd; }

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

Definition at line 220 of file IFileMgr.h.

{ m_fd = f; }

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

Definition at line 213 of file IFileMgr.h.

{ return m_flags; }

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

Definition at line 224 of file IFileMgr.h.

{ m_flags = f; }

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

Definition at line 215 of file IFileMgr.h.

{ return m_fptr; }

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

Definition at line 226 of file IFileMgr.h.

{ m_fptr = v; }

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

Definition at line 214 of file IFileMgr.h.

{ return m_iflags; }

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

Definition at line 225 of file IFileMgr.h.

{ m_iflags = f; }

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

Definition at line 216 of file IFileMgr.h.

{ return m_isOpen; }

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

Definition at line 227 of file IFileMgr.h.

{ m_isOpen = b; }

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

Definition at line 217 of file IFileMgr.h.

{ return m_shared; }

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

Definition at line 228 of file IFileMgr.h.

{ m_shared = s; }

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

Definition at line 210 of file IFileMgr.h.

{ return m_name; }

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

Definition at line 221 of file IFileMgr.h.

{ m_name = n; }

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

Definition at line 249 of file IFileMgr.h.

{
if ( m_name != rhs.name() ) {
return ( m_name < rhs.name() );
} else {
return ( m_flags < rhs.iflags() );
}
}

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

Definition at line 243 of file IFileMgr.h.

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

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

Definition at line 212 of file IFileMgr.h.

{ return m_tech; }

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

Definition at line 223 of file IFileMgr.h.

{ m_tech = t;}

## Friends And Related Function Documentation

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

Definition at line 231 of file IFileMgr.h.

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

## 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:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r0/GaudiKernel/GaudiKernel/IFileMgr.h