libdballe  9.11
Public Member Functions | Public Attributes | List of all members
dballe::BinaryMessage Class Reference

Binary message. More...

#include <file.h>

Public Member Functions

 BinaryMessage (Encoding encoding)
 
 BinaryMessage (const BinaryMessage &)=default
 
 BinaryMessage (BinaryMessage &&)=default
 
BinaryMessageoperator= (const BinaryMessage &)=default
 
BinaryMessageoperator= (BinaryMessage &&)=default
 
 operator bool () const
 Return true if the message is not empty.
 

Public Attributes

Encoding encoding
 Format of the binary data.
 
std::string data
 Binary message data.
 
std::string pathname
 Pathname of the file from where the BinaryMessage has been read. More...
 
off_t offset = (off_t)-1
 Start offset of this message inside the file.
 
int index = MISSING_INT
 Index of the message from the beginning of the file.
 

Detailed Description

Binary message.

Member Data Documentation

◆ pathname

std::string dballe::BinaryMessage::pathname

Pathname of the file from where the BinaryMessage has been read.

It can be empty when not applicable, such as when the message is created from scratch and not yet written


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