|  | ATLAS Offline Software
    | 
 
 
 
Go to the documentation of this file.
   71   if (nbits <= 0 || nbits > 32) 
return false;
 
   74   if (navail == 0) 
return false;
 
   99   if (nmantissa <= 0 || nmantissa > navail) 
return false;
 
  145   if (
m_nbits == 1) 
return false;
 
  199   if (option.
name() == 
"nbits" ||
 
  200       option.
name() == 
"nmantissa" ||
 
  201       option.
name() == 
"scale" ||
 
  202       option.
name() == 
"signed" ||
 
  203       option.
name() == 
"rounding" ||
 
  204       option.
name() == 
"float")
 
  224   if (option.
name() == 
"nbits")
 
  227   else if (option.
name() == 
"nmantissa")
 
  230   else if (option.
name() == 
"scale")
 
  233   else if (option.
name() == 
"signed")
 
  236   else if (option.
name() == 
"rounding")
 
  239   else if (option.
name() == 
"float")
 
  
bool setOption(const AuxDataOption &option)
Set a packing option.
PackedParameters()
Default constructor.
int intVal() const
Return the option value as an integer.
uint8_t m_flags
Additional flags.
Describe how the contents of a PackedContainer are to be saved.
bool setNbits(uint8_t nbits)
Set the number of bits to be used for each element.
uint8_t m_nmantissa
The number of bits for the mantissa of floating-point representations.
bool setFloat(bool flag)
Set the floating-point flag.
bool isSigned() const
Are elements being written as signed numbers?
uint8_t nmantissa() const
The number of bits used for the mantissa portion of a float-point representation, excluding a sign bi...
bool hasScale() const
Should floats be rescaled before writing?
float floatVal() const
Return the option value as a float.
uint8_t nbits() const
The number of bits used to store each element.
bool setNmantissa(uint8_t nmantissa)
Set the number of mantissa bits used in the packed representation.
Hold information about an option setting request.
static bool isValidOption(const AuxDataOption &option)
Test to see if option is a recognized packing option.
const std::string & name() const
The name of the option.
bool setScale(float scale)
Set the scale to use when packing floating-point data.
uint8_t m_nbits
The number of bits to use for each element.
float m_scale
If nonzero, divide floating-point numbers by this before writing.
bool setRounding(bool flag)
Set the rounding mode.
float scale() const
Return the scale for floating-point numbers.
bool setSigned(bool flag)
Set the signedness flag for the packed representation.