WPILibC++ 2024.1.1-beta-4
wpi::log::IntegerLogEntry Class Reference

Log integer values. More...

#include <wpi/DataLog.h>

Inheritance diagram for wpi::log::IntegerLogEntry:
wpi::log::DataLogEntry

Public Member Functions

 IntegerLogEntry ()=default
 
 IntegerLogEntry (DataLog &log, std::string_view name, int64_t timestamp=0)
 
 IntegerLogEntry (DataLog &log, std::string_view name, std::string_view metadata, int64_t timestamp=0)
 
void Append (int64_t value, int64_t timestamp=0)
 Appends a record to the log. More...
 
- Public Member Functions inherited from wpi::log::DataLogEntry
 DataLogEntry (const DataLogEntry &)=delete
 
DataLogEntryoperator= (const DataLogEntry &)=delete
 
 DataLogEntry (DataLogEntry &&rhs)
 
DataLogEntryoperator= (DataLogEntry &&rhs)
 
 operator bool () const
 
void SetMetadata (std::string_view metadata, int64_t timestamp=0)
 Updates the metadata for the entry. More...
 
void Finish (int64_t timestamp=0)
 Finishes the entry. More...
 

Static Public Attributes

static constexpr std::string_view kDataType = "int64"
 

Additional Inherited Members

- Protected Member Functions inherited from wpi::log::DataLogEntry
 DataLogEntry ()=default
 
 DataLogEntry (DataLog &log, std::string_view name, std::string_view type, std::string_view metadata={}, int64_t timestamp=0)
 
- Protected Attributes inherited from wpi::log::DataLogEntry
DataLogm_log = nullptr
 
int m_entry = 0
 

Detailed Description

Log integer values.

Constructor & Destructor Documentation

◆ IntegerLogEntry() [1/3]

wpi::log::IntegerLogEntry::IntegerLogEntry ( )
default

◆ IntegerLogEntry() [2/3]

wpi::log::IntegerLogEntry::IntegerLogEntry ( DataLog log,
std::string_view  name,
int64_t  timestamp = 0 
)
inline

◆ IntegerLogEntry() [3/3]

wpi::log::IntegerLogEntry::IntegerLogEntry ( DataLog log,
std::string_view  name,
std::string_view  metadata,
int64_t  timestamp = 0 
)
inline

Member Function Documentation

◆ Append()

void wpi::log::IntegerLogEntry::Append ( int64_t  value,
int64_t  timestamp = 0 
)
inline

Appends a record to the log.

Parameters
valueValue to record
timestampTime stamp (may be 0 to indicate now)

Member Data Documentation

◆ kDataType

constexpr std::string_view wpi::log::IntegerLogEntry::kDataType = "int64"
staticconstexpr

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