| # 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 | List of all members
Io::IoFlags Class Reference

`#include <IFileMgr.h>`

## Public Member Functions
| IoFlags ()
| IoFlags (int i)
int | f () const
bool | operator== (const IoFlags &fa) const
bool | operator== (const int &fa) const
IoFlags | operator| (const IoFlags &fa) const
IoFlags | operator| (const int &fa) const
| operator int () const
bool | isRead () const
bool | isWrite () const
bool | isRdWr () const
bool | isInvalid () const
bool | match (const IoFlags &fa, bool strict=true) const
std::string | bits () const

## Private Attributes
int | _f

## Detailed Description

Definition at line 39 of file IFileMgr.h.

## Constructor & Destructor Documentation

Io::IoFlags::IoFlags | ( |  | ) |
| inline

Definition at line 41 of file IFileMgr.h.

:_f(INVALID){};

Io::IoFlags::IoFlags | ( | int | i | ) |
| inline

Definition at line 42 of file IFileMgr.h.

:_f(i){};

## Member Function Documentation

std::string Io::IoFlags::bits | ( |  | ) | const
| inline

Definition at line 67 of file IFileMgr.h.

{
std::string s;
int f(_f);
const int SHIFT = 8 * sizeof( int ) - 1;
const unsigned MASK = 1 << SHIFT;
for ( int i = 1; i <= SHIFT + 1; i++ ) {
s += ( f & MASK ? '1' : '0' );
f <<= 1;
if ( i % 8 == 0 )
s += ' ';
}
return s;
}

int Io::IoFlags::f | ( |  | ) | const
| inline

Definition at line 44 of file IFileMgr.h.

{ return _f; }

bool Io::IoFlags::isInvalid | ( |  | ) | const
| inline

Definition at line 57 of file IFileMgr.h.

{ return ( (_f & INVALID) != 0); }

bool Io::IoFlags::isRdWr | ( |  | ) | const
| inline

Definition at line 56 of file IFileMgr.h.

{ return ( (_f & RDWR) != 0 ); }

bool Io::IoFlags::isRead | ( |  | ) | const
| inline

Definition at line 54 of file IFileMgr.h.

{ return (_f == READ); }

bool Io::IoFlags::isWrite | ( |  | ) | const
| inline

Definition at line 55 of file IFileMgr.h.

{ return ( (_f & WRITE) != 0 ); }

bool Io::IoFlags::match | ( | const IoFlags & | fa,
|  | bool | strict = `true`
| ) |  | const
| inline

Definition at line 59 of file IFileMgr.h.

{
if ( strict ) {
return ( _f == fa );
}
// only look at first 2 bits
return ( (_f&3) == (fa&3) );
}

Io::IoFlags::operator int | ( |  | ) | const
| inline

Definition at line 52 of file IFileMgr.h.

{ return _f; }

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

Definition at line 46 of file IFileMgr.h.

{ return ( _f == fa.f() ); }

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

Definition at line 47 of file IFileMgr.h.

{ return ( _f == fa ); }

IoFlags Io::IoFlags::operator| | ( | const IoFlags & | fa | ) | const
| inline

Definition at line 49 of file IFileMgr.h.

{ return (_f | fa.f()); }

IoFlags Io::IoFlags::operator| | ( | const int & | fa | ) | const
| inline

Definition at line 50 of file IFileMgr.h.

{ return (_f | fa); }

## Member Data Documentation

int Io::IoFlags::_f
| private

Definition at line 83 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