|
enum | format {
DEFAULT,
ASCII,
HEX_FMT,
SIGNED_SHORT,
UNSIGNED_SHORT,
FLOAT,
IRIG,
INT32,
ASCII_7,
NAKED,
ASCII,
BINARY1,
BINARY2
} |
|
enum | format {
DEFAULT,
ASCII,
HEX_FMT,
SIGNED_SHORT,
UNSIGNED_SHORT,
FLOAT,
IRIG,
INT32,
ASCII_7,
NAKED,
ASCII,
BINARY1,
BINARY2
} |
|
typedef enum DumpClient::format | format_t |
|
typedef enum DumpClient::format | format_t |
|
Enumerator |
---|
DEFAULT |
|
ASCII |
|
HEX_FMT |
|
SIGNED_SHORT |
|
UNSIGNED_SHORT |
|
FLOAT |
|
IRIG |
|
INT32 |
|
ASCII_7 |
|
NAKED |
|
ASCII |
|
BINARY1 |
|
BINARY2 |
|
Enumerator |
---|
DEFAULT |
|
ASCII |
|
HEX_FMT |
|
SIGNED_SHORT |
|
UNSIGNED_SHORT |
|
FLOAT |
|
IRIG |
|
INT32 |
|
ASCII_7 |
|
NAKED |
|
ASCII |
|
BINARY1 |
|
BINARY2 |
|
virtual DumpClient::~DumpClient |
( |
| ) |
|
|
inlinevirtual |
DumpClient::DumpClient |
( |
format_t |
fmt, |
|
|
ostream & |
outstr, |
|
|
int |
asciiPrecision |
|
) |
| |
virtual DumpClient::~DumpClient |
( |
| ) |
|
|
inlinevirtual |
void DumpClient::dumpNaked |
( |
const Sample * |
samp | ) |
|
|
private |
bool DumpClient::finished |
( |
| ) |
const |
|
inline |
void DumpClient::flush |
( |
| ) |
|
throw | ( | |
| ) | | |
|
inlinevirtual |
void DumpClient::flush |
( |
| ) |
|
throw | ( | |
| ) | | |
|
inlinevirtual |
bool DumpClient::getDOS |
( |
| ) |
const |
|
inline |
int DumpClient::getWidth |
( |
const std::string & |
name | ) |
|
|
inlineprivate |
void DumpClient::printHeader |
( |
vector< const Variable * > |
vars | ) |
|
void DumpClient::printHeader |
( |
| ) |
|
References _samples, csv, nidas::core::NidasApp::IdFormat::decimalWidth(), nidas::core::SampleMatcher::exclusiveMatch(), nidas::core::NidasApp::getIdFormat(), getWidth(), ostr, setfield(), showdeltat, showlen, vnames, and widths.
Referenced by DataPrep::run().
bool DumpClient::receive |
( |
const Sample * |
s | ) |
|
throw | ( | |
| ) | | |
|
virtual |
Method called to pass a sample to this client.
This method is typically called by a SampleSource for each of its SampleClients when it has a sample ready. Returns true: success false: sample rejected. This is meant to signal a warning-type situation - like a socket not being available temporarily. True errors will be thrown as an IOException.
Implements nidas::core::SampleClient.
bool DumpClient::receive |
( |
const Sample * |
s | ) |
|
throw | ( | |
| ) | | |
|
virtual |
void DumpClient::setCSV |
( |
bool |
enable | ) |
|
|
inline |
void DumpClient::setDOS |
( |
bool |
val | ) |
|
|
inline |
void DumpClient::setEndTime |
( |
const n_u::UTime & |
val | ) |
|
|
inline |
std::ostream & DumpClient::setfield |
( |
std::ostream & |
out, |
|
|
const std::string & |
name, |
|
|
int |
width = 0 |
|
) |
| |
|
private |
Setup the ostream for the given field, depending on the field separator and field width.
References csv, and getWidth().
Referenced by printHeader().
void DumpClient::setSensors |
( |
list< DSMSensor * > & |
sensors | ) |
|
References _samples, nidas::core::SampleMatcher::exclusiveMatch(), nidas::core::SampleTag::getId(), nidas::core::Variable::getPrefix(), nidas::core::DSMSensor::getSampleTagIterator(), nidas::core::SampleTag::getVariableIterator(), nidas::core::SampleTagIterator::hasNext(), nidas::core::VariableIterator::hasNext(), nidas::core::SampleMatcher::match(), nidas::core::SampleTagIterator::next(), nidas::core::VariableIterator::next(), and vnames.
void DumpClient::setShowDeltaT |
( |
bool |
show | ) |
|
|
inline |
void DumpClient::setShowLen |
( |
bool |
show | ) |
|
|
inline |
void DumpClient::setStartTime |
( |
const n_u::UTime & |
val | ) |
|
|
inline |
void DumpClient::setTimeFormat |
( |
const std::string & |
fmt | ) |
|
|
inline |
void DumpClient::setWarningTime |
( |
float |
w | ) |
|
|
inline |
References ASCII, nidas::core::CHAR_ST, nidas::core::DOUBLE_ST, FLOAT, nidas::core::FLOAT_ST, HEX_FMT, INT32, nidas::core::INT32_ST, nidas::core::INT64_ST, nidas::core::SHORT_ST, SIGNED_SHORT, nidas::core::UCHAR_ST, nidas::core::UINT32_ST, nidas::core::UNKNOWN_ST, UNSIGNED_SHORT, and nidas::core::USHORT_ST.
int DumpClient::_asciiPrecision |
|
private |
bool DumpClient::_checkEnd |
|
private |
bool DumpClient::_checkStart |
|
private |
bool DumpClient::_finished |
|
private |
ostream& DumpClient::_ostr |
|
private |
ostream& DumpClient::ostr |
|
private |
bool DumpClient::showdeltat |
|
private |
string DumpClient::timeformat |
|
private |
vector<string> DumpClient::vnames |
|
private |
float DumpClient::warntime |
|
private |
map<string, int> DumpClient::widths |
|
private |
The documentation for this class was generated from the following files: