#include <flux.h>
Public Member Functions | |
Flux () | |
Flux (Energy e, double flux) | |
Flux (Energy e, double flux, const string &unit) | |
void | set (Energy e, double flux) |
void | set (Energy e, double flux, const string &unit) |
double | get () const |
double | get (const string &unit) const |
Energy | E () const |
string | uu () const |
Private Types | |
enum | fu_flag { FU_NONE, FU_ERG_S, FU_W, FU_JY, FU_MJY, FU_MJY_SR, FU_CM2, FU_M2, FU_A, FU_NM, FU_MU, FU_HZ, FU_SR, FU_SQAS, FU_TOP } |
typedef bitset< FU_TOP > | fu_bits |
Private Member Functions | |
fu_bits | p_InternalFluxUnitNoCheck (const string &unit, size_t &len) const |
fu_bits | p_InternalFluxUnit (const string &unit) const |
bool | p_ValidFluxUnit (fu_bits) const |
void | p_set (Energy e, double value, fu_bits bits) |
double | p_get (fu_bits bits) const |
Private Attributes | |
Energy | p_energy |
double | p_flux |
fu_bits | p_userunits |
Friends | |
bool | ValidFluxUnit (const string &unit) |
Definition at line 9 of file flux.h.
typedef bitset<FU_TOP> Flux::fu_bits [private] |
enum Flux::fu_flag [private] |
Flux::Flux | ( | ) | [inline] |
Definition at line 28 of file flux.h.
References p_userunits.
Flux::Flux | ( | Energy | e, | |
double | flux, | |||
const string & | unit | |||
) | [inline] |
double Flux::get | ( | const string & | unit | ) | const [inline] |
Definition at line 55 of file flux.h.
References p_get(), and p_InternalFluxUnit().
double Flux::p_get | ( | fu_bits | bits | ) | const [private] |
Definition at line 144 of file flux.cpp.
References Energy::Angstrom(), DEBUG_ENTRY, FU_A, FU_HZ, FU_JY, FU_M2, FU_MJY, FU_MJY_SR, FU_MU, FU_NM, FU_SQAS, FU_SR, FU_W, Energy::Hz(), Energy::micron(), Energy::nm(), p_energy, p_flux, PI4, and SQAS_SKY.
Referenced by get().
Flux::fu_bits Flux::p_InternalFluxUnit | ( | const string & | unit | ) | const [private] |
Definition at line 87 of file flux.cpp.
References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, ioQQQ, p_InternalFluxUnitNoCheck(), and p_ValidFluxUnit().
Referenced by get(), and set().
Flux::fu_bits Flux::p_InternalFluxUnitNoCheck | ( | const string & | unit, | |
size_t & | len | |||
) | const [private] |
Definition at line 175 of file flux.cpp.
References Energy::Angstrom(), DEBUG_ENTRY, FU_A, FU_HZ, FU_JY, FU_M2, FU_MJY, FU_MJY_SR, FU_MU, FU_NM, FU_SQAS, FU_SR, FU_W, Energy::Hz(), Energy::micron(), Energy::nm(), p_energy, p_flux, p_userunits, PI4, and SQAS_SKY.
Referenced by set().
bool Flux::p_ValidFluxUnit | ( | fu_bits | bits | ) | const [private] |
void Flux::set | ( | Energy | e, | |
double | flux, | |||
const string & | unit | |||
) | [inline] |
Definition at line 46 of file flux.h.
References p_InternalFluxUnit(), and p_set().
string Flux::uu | ( | ) | const |
Energy Flux::p_energy [private] |
double Flux::p_flux [private] |
fu_bits Flux::p_userunits [private] |