UWARG Computer Vision
Public Member Functions | Friends | List of all members
MetadataInput Class Reference

A class for storing and searching telemetry logs. More...

#include <metadata_input.h>

Collaboration diagram for MetadataInput:
Collaboration graph

Public Member Functions

Metadata get_metadata (double timestamp)
 searches for the closest log entry to the given timestamp More...
 
Metadata next_metadata ()
 retrieves the next log entry corresponding to a time when the log notes a photograph was triggered More...
 
void add_source (MetadataReader *reader)
 Adds a new metadata source. More...
 
int num_sources ()
 returns the number of sources
 
int check_data_order ()
 

Friends

class MetadataReader
 

Detailed Description

A class for storing and searching telemetry logs.

Member Function Documentation

void MetadataInput::add_source ( MetadataReader reader)

Adds a new metadata source.

Parameters
MetadataReader,willbe deleted when the MetadataInput is deleted
int MetadataInput::check_data_order ( )

Reports first index of the data where it is out of order

Returns
index of the first out of order entry or zero if data is in order
Metadata MetadataInput::get_metadata ( double  timestamp)

searches for the closest log entry to the given timestamp

Probably throws an exception if no entries are in the log

Parameters
timestampthe time in the format hhmmss.ms
Returns
the closest log entry to the given timestamp
Metadata MetadataInput::next_metadata ( )

retrieves the next log entry corresponding to a time when the log notes a photograph was triggered

Specifically returns the next log entry where the value of cameraStatus is one less than the previous entry If called more times then there are such entries, will continuously return the last such entry

Returns
The next log entry when the log notes a photograph was triggered

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