libpowermon 1.12
PowerMon Access Library
Loading...
Searching...
No Matches
PowermonLogFile Class Reference

PowermonLogFile is a class representing a PowerMon log file. It also contains support to decode the data points from a log file. More...

#include <powermon_log.h>

Classes

struct  Sample

Static Public Member Functions

static uint32_t decode (const std::vector< uint8_t > &data, std::vector< Sample > &samples, int32_t tz_index)
 Decode a log file.

Detailed Description

PowermonLogFile is a class representing a PowerMon log file. It also contains support to decode the data points from a log file.

Member Function Documentation

◆ decode()

uint32_t PowermonLogFile::decode ( const std::vector< uint8_t > & data,
std::vector< Sample > & samples,
int32_t tz_index )
static

Decode a log file.

Parameters
dataVector of uint8_t containing the raw log data file
samplesVector of Sample where the data decoded from the log file will be appended
tz_indexThe time zone index as stored in the device configuration
Returns
Number of samples successfully decoded.

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