ed_sensor_integration
Public Member Functions | Private Attributes | List of all members
ed::SnapshotCrawler Class Reference

#include <snapshot.h>

Public Member Functions

Snapshotcurrent ()
 
SnapshotgetSnapshot (unsigned int i)
 
bool loadNewSnapshot ()
 loadNewSnapshot, find next file to load snapshot from and load snapshot. More...
 
bool loadSnapshot (tue::filesystem::Path filename)
 loadSnapshot, load snapshot data and extend the snapshots list. More...
 
void next ()
 next, proceed to next index of the snapshot list. If index is out of bounds, try to load a new snapshot. More...
 
void previous ()
 
 SnapshotCrawler (tue::filesystem::Path path)
 

Private Attributes

tue::filesystem::Crawler crawler
 
uint i_current
 
std::vector< Snapshotsnapshots
 

Detailed Description

Definition at line 137 of file snapshot.h.

Constructor & Destructor Documentation

◆ SnapshotCrawler()

ed::SnapshotCrawler::SnapshotCrawler ( tue::filesystem::Path  path)
inline

Definition at line 142 of file snapshot.h.

Member Function Documentation

◆ current()

Snapshot& ed::SnapshotCrawler::current ( )
inline

Definition at line 156 of file snapshot.h.

◆ getSnapshot()

Snapshot& ed::SnapshotCrawler::getSnapshot ( unsigned int  i)
inline

Definition at line 157 of file snapshot.h.

◆ loadNewSnapshot()

bool ed::SnapshotCrawler::loadNewSnapshot ( )
inline

loadNewSnapshot, find next file to load snapshot from and load snapshot.

Returns
whether or not loading the new snapshot succeeded.

Definition at line 186 of file snapshot.h.

◆ loadSnapshot()

bool ed::SnapshotCrawler::loadSnapshot ( tue::filesystem::Path  filename)
inline

loadSnapshot, load snapshot data and extend the snapshots list.

Parameters
filenamename of the json file to load
Returns
whether or not loading the snapshot was successful.

Definition at line 211 of file snapshot.h.

◆ next()

void ed::SnapshotCrawler::next ( )
inline

next, proceed to next index of the snapshot list. If index is out of bounds, try to load a new snapshot.

Definition at line 168 of file snapshot.h.

◆ previous()

void ed::SnapshotCrawler::previous ( )
inline

Definition at line 159 of file snapshot.h.

Member Data Documentation

◆ crawler

tue::filesystem::Crawler ed::SnapshotCrawler::crawler
private

Definition at line 231 of file snapshot.h.

◆ i_current

uint ed::SnapshotCrawler::i_current
private

Definition at line 228 of file snapshot.h.

◆ snapshots

std::vector<Snapshot> ed::SnapshotCrawler::snapshots
private

Definition at line 229 of file snapshot.h.


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