nidas v1.2.3
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
ARLIngest Class Reference
Inheritance diagram for ARLIngest:
Inheritance graph
[legend]

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
 

Constructor & Destructor Documentation

◆ ARLIngest()

ARLIngest::ARLIngest ( )
inline

Member Function Documentation

◆ arl_ingest_one()

bool ARLIngest::arl_ingest_one ( SampleOutputStream & sout,
string filename )
throw ( )
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()

int ARLIngest::main ( int argc,
char ** argv )
throw ( )
static

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().

◆ parseRunstring()

int ARLIngest::parseRunstring ( int argc,
char ** argv )
throw ( )

◆ prepareHeaderIds()

void ARLIngest::prepareHeaderIds ( string xmlfilename,
string dsmName,
string height )
private

◆ printHeader()

void ARLIngest::printHeader ( )

◆ run()

int ARLIngest::run ( )
throw ( )

◆ sendDefaultHeader()

void HeaderSource::sendDefaultHeader ( SampleOutput * output)
staticinherited

◆ sendHeader()

void ARLIngest::sendHeader ( dsm_time_t thead,
SampleOutput * out )
virtual

sendHeader does something I still dont understand

Implements nidas::core::HeaderSource.

References header, and nidas::core::SampleInputHeader::write().

◆ setDefaults()

void HeaderSource::setDefaults ( SampleInputHeader & header)
staticinherited

◆ usage()

int ARLIngest::usage ( const char * argv0)

usage emits a generic usage message to std::cout

References _app, and nidas::core::NidasApp::usage().

Referenced by parseRunstring().

◆ writeLine()

void ARLIngest::writeLine ( SampleOutputStream & sout,
string & line,
n_u::UTime time )
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().

Member Data Documentation

◆ _app

NidasApp ARLIngest::_app
private

◆ dsmid

int ARLIngest::dsmid
private

Referenced by prepareHeaderIds(), and writeLine().

◆ header

SampleInputHeader ARLIngest::header
private

◆ inputFileNames

list<string> ARLIngest::inputFileNames
private

Referenced by parseRunstring(), and run().

◆ leapSeconds

double ARLIngest::leapSeconds
private

Referenced by arl_ingest_one().

◆ outputFileLength

int ARLIngest::outputFileLength
private

Referenced by parseRunstring(), and run().

◆ outputFileName

string ARLIngest::outputFileName
private

Referenced by parseRunstring(), and run().

◆ spsid

int ARLIngest::spsid
private

Referenced by prepareHeaderIds(), and writeLine().


The documentation for this class was generated from the following file: