Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

eformat::helper::RunNumber Class Reference

#include <RunNumber.h>

List of all members.

Public Member Functions

uint32_t code (void) const
uint32_t code (void) const
uint32_t number (void) const
uint32_t number (void) const
 RunNumber (uint32_t rn)
 RunNumber (eformat::RunType type, uint32_t n)
 RunNumber (uint32_t rn)
 RunNumber (eformat::RunType type, uint32_t n)
eformat::RunType type (void) const
eformat::RunType type (void) const

Private Attributes

uint32_t m_n
 This run number.
eformat::RunType m_type
 This run type.


Detailed Description

Defines converters between version numbers and its components


Constructor & Destructor Documentation

eformat::helper::RunNumber::RunNumber eformat::RunType  type,
uint32_t  n
[inline]
 

Constructor. Takes the components to form a run number

Parameters:
type The run type (
See also:
types.h)
Parameters:
n The number 24-bits only are valid
00048         : m_type(type), m_n(n) {}

eformat::helper::RunNumber::RunNumber uint32_t  rn  ) 
 

Constructor. Takes the run number to understand the components from.

Parameters:
rn The run number, fully built.
Warning:
This run number has to conform to the current version of the library or unpredictable results might occur.
00016   : m_type(static_cast<eformat::RunType>(rn>>24)),
00017     m_n(0xffffff&rn)
00018 {
00019 }

eformat::helper::RunNumber::RunNumber eformat::RunType  type,
uint32_t  n
[inline]
 

Constructor. Takes the components to form a run number

Parameters:
type The run type (
See also:
types.h)
Parameters:
n The number 24-bits only are valid
00048         : m_type(type), m_n(n) {}

eformat::helper::RunNumber::RunNumber uint32_t  rn  ) 
 

Constructor. Takes the run number to understand the components from.

Parameters:
rn The run number, fully built.
Warning:
This run number has to conform to the current version of the library or unpredictable results might occur.


Member Function Documentation

uint32_t eformat::helper::RunNumber::code void   )  const
 

Gets the full 32-bit number made by assembling the 2 numbers above.

uint32_t eformat::helper::RunNumber::code void   )  const
 

Gets the full 32-bit number made by assembling the 2 numbers above.

00022 {
00023   uint32_t retval = m_type;
00024   retval <<= 24;
00025   retval |= m_n;
00026   return retval;
00027 }

uint32_t eformat::helper::RunNumber::number void   )  const [inline]
 

Extracts the minor version part of this version

00067 { return m_n; }

uint32_t eformat::helper::RunNumber::number void   )  const [inline]
 

Extracts the minor version part of this version

00067 { return m_n; }

eformat::RunType eformat::helper::RunNumber::type void   )  const [inline]
 

Extracts the major version part of this version

00062 { return m_type; }

eformat::RunType eformat::helper::RunNumber::type void   )  const [inline]
 

Extracts the major version part of this version

00062 { return m_type; }


Member Data Documentation

uint32_t eformat::helper::RunNumber::m_n [private]
 

This run number.

eformat::RunType eformat::helper::RunNumber::m_type [private]
 

This run type.


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 19:18:44 2011 for BOSS6.5.5 by  doxygen 1.3.9.1