nidas v1.2.3
|
Public Member Functions | |
ARLIngest () | |
int | parseRunstring (int argc, char **argv) throw () |
int | run () throw () |
int | usage (const char *argv0) |
usage emits a generic usage message to std::cout | |
void | sendHeader (dsm_time_t thead, SampleOutput *out) |
sendHeader does something I still dont understand | |
void | printHeader () |
printHeader dumps out header information (for debugging) | |
Static Public Member Functions | |
static int | main (int argc, char **argv) throw () |
main is the entry point for the ARLIngest class. | |
static void | setDefaults (SampleInputHeader &header) |
static void | sendDefaultHeader (SampleOutput *output) |
Private Member Functions | |
bool | arl_ingest_one (SampleOutputStream &, string) throw () |
arl_ingest_one ingests a single file by the passed filename and writes the re-encoded data into the passed SampleOutputStream | |
void | writeLine (SampleOutputStream &, string &, n_u::UTime) |
writeLine writes a single sample line to the passed output stream applying the needed offset UTime | |
void | prepareHeaderIds (string xmlfilename, string dsmName, string height) |
prepareHeaderIds parses the xml files pointed to by xmlfilename and using the passed dsm name and height, modifies dsmid and spsid to the proper values. | |
Private Attributes | |
list< string > | inputFileNames |
string | outputFileName |
int | outputFileLength |
int | dsmid |
int | spsid |
double | leapSeconds |
SampleInputHeader | header |
NidasApp | _app |
|
inline |
|
private |
arl_ingest_one ingests a single file by the passed filename and writes the re-encoded data into the passed SampleOutputStream
References _app, nidas::core::NidasApp::interrupted(), leapSeconds, nidas::util::UTime::toDoubleSecs(), and writeLine().
Referenced by run().
main is the entry point for the ARLIngest class.
argc and argv are taken from the normal places.
References parseRunstring(), run(), and nidas::core::NidasApp::setupSignals().
Referenced by main().
References _app, nidas::core::NidasAppInputFilesArg::allowFiles, nidas::core::NidasAppInputFilesArg::allowSockets, nidas::core::NidasApp::allowUnrecognized(), nidas::core::NidasAppArgv::argc, nidas::core::NidasAppArgv::argv, nidas::core::NidasApp::enableArguments(), nidas::core::NidasApp::Help, nidas::core::NidasApp::helpRequested(), inputFileNames, nidas::core::NidasApp::InputFiles, nidas::core::NidasApp::loggingArgs(), outputFileLength, nidas::core::NidasApp::outputFileLength(), outputFileName, nidas::core::NidasApp::outputFileName(), nidas::core::NidasApp::OutputFiles, nidas::core::NidasApp::parseArgs(), prepareHeaderIds(), usage(), nidas::core::NidasApp::Version, nidas::core::NidasApp::XmlHeaderFile, and nidas::core::NidasApp::xmlHeaderFile().
Referenced by main().
|
private |
prepareHeaderIds parses the xml files pointed to by xmlfilename and using the passed dsm name and height, modifies dsmid and spsid to the proper values.
It throws exceptions on file IO errors, or when no configuration match is found. Additionally, it loads proper values into the stored header which is attached to samples when sendHeader is called
References dsmid, nidas::core::Version::getArchiveVersion(), nidas::core::DSMSensor::getHeightString(), nidas::core::DSMConfig::getId(), nidas::core::Project::getInstance(), nidas::core::DSMConfig::getName(), nidas::core::DSMSensor::getSensorId(), nidas::core::DSMConfig::getSensorIterator(), nidas::core::Version::getSoftwareVersion(), nidas::core::DSMConfigIterator::hasNext(), nidas::core::SensorIterator::hasNext(), header, nidas::core::DSMConfigIterator::next(), nidas::core::SensorIterator::next(), nidas::core::parseXMLConfigFile(), nidas::core::SampleInputHeader::setArchiveVersion(), nidas::core::SampleInputHeader::setConfigName(), nidas::core::SampleInputHeader::setConfigVersion(), nidas::core::SampleInputHeader::setProjectName(), nidas::core::SampleInputHeader::setSoftwareVersion(), nidas::core::SampleInputHeader::setSystemName(), and spsid.
Referenced by parseRunstring().
void ARLIngest::printHeader | ( | ) |
printHeader dumps out header information (for debugging)
References nidas::core::SampleInputHeader::getArchiveVersion(), nidas::core::SampleInputHeader::getConfigName(), nidas::core::SampleInputHeader::getConfigVersion(), nidas::core::SampleInputHeader::getProjectName(), nidas::core::SampleInputHeader::getSoftwareVersion(), nidas::core::SampleInputHeader::getSystemName(), and header.
int ARLIngest::run | ( | ) | ||||
throw | ( | ) |
References arl_ingest_one(), nidas::dynld::SampleOutputStream::close(), nidas::dynld::SampleOutputStream::flush(), inputFileNames, outputFileLength, outputFileName, nidas::core::FileSet::setFileLengthSecs(), nidas::core::FileSet::setFileName(), nidas::core::SampleOutputBase::setHeaderSource(), and nidas::util::Exception::what().
Referenced by main().
|
staticinherited |
nidas::util::IOException |
References nidas::core::HeaderSource::setDefaults(), and nidas::core::SampleInputHeader::write().
Referenced by nidas::core::SampleOutputBase::createNextFile(), and nidas::dynld::raf::SyncRecordGenerator::sendHeader().
|
virtual |
sendHeader does something I still dont understand
Implements nidas::core::HeaderSource.
References header, and nidas::core::SampleInputHeader::write().
|
staticinherited |
References nidas::core::Version::getArchiveVersion(), nidas::core::Project::getInstance(), nidas::core::Version::getSoftwareVersion(), nidas::core::SampleInputHeader::setArchiveVersion(), nidas::core::SampleInputHeader::setConfigName(), nidas::core::SampleInputHeader::setConfigVersion(), nidas::core::SampleInputHeader::setProjectName(), nidas::core::SampleInputHeader::setSoftwareVersion(), and nidas::core::SampleInputHeader::setSystemName().
Referenced by nidas::core::HeaderSource::sendDefaultHeader().
usage emits a generic usage message to std::cout
References _app, and nidas::core::NidasApp::usage().
Referenced by parseRunstring().
|
private |
writeLine writes a single sample line to the passed output stream applying the needed offset UTime
References dsmid, nidas::core::getSample(), spsid, and nidas::util::UTime::toUsecs().
Referenced by arl_ingest_one().
|
private |
Referenced by arl_ingest_one(), parseRunstring(), and usage().
|
private |
Referenced by prepareHeaderIds(), and writeLine().
|
private |
Referenced by prepareHeaderIds(), printHeader(), and sendHeader().
|
private |
Referenced by parseRunstring(), and run().
|
private |
Referenced by arl_ingest_one().
|
private |
Referenced by parseRunstring(), and run().
|
private |
Referenced by parseRunstring(), and run().
|
private |
Referenced by prepareHeaderIds(), and writeLine().