Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
include
create
packet.h
Go to the documentation of this file.
1
31
#ifndef CREATE_PACKET_H
32
#define CREATE_PACKET_H
33
34
#include <mutex>
35
36
namespace
create
{
37
class
Packet
{
38
private
:
39
uint16_t
data
;
40
uint16_t
tmpData
;
41
mutable
std::mutex
dataMutex
;
42
mutable
std::mutex
tmpDataMutex
;
43
44
protected
:
45
// Thread safe
46
void
setData
(
const
uint16_t& d);
47
48
public
:
49
const
uint8_t
nbytes
;
50
const
std::string
info
;
51
52
Packet
(
const
uint8_t& nbytes,
const
std::string& info);
53
~Packet
();
54
55
// Thread safe
56
void
setDataToValidate
(
const
uint16_t& td);
57
// Thread safe
58
void
validate
();
59
// Thread safe
60
uint16_t
getData
()
const
;
61
};
62
63
}
// namepsace create
64
65
#endif // CREATE_PACKET_H
create::Packet
Definition:
packet.h:37
create::Packet::nbytes
const uint8_t nbytes
Definition:
packet.h:49
create::Packet::setDataToValidate
void setDataToValidate(const uint16_t &td)
Definition:
packet.cpp:15
create::Packet::tmpData
uint16_t tmpData
Definition:
packet.h:40
create::Packet::getData
uint16_t getData() const
Definition:
packet.cpp:30
create::Packet::info
const std::string info
Definition:
packet.h:50
create::Packet::Packet
Packet(const uint8_t &nbytes, const std::string &info)
Definition:
packet.cpp:7
create
Definition:
create.h:48
create::Packet::tmpDataMutex
std::mutex tmpDataMutex
Definition:
packet.h:42
create::Packet::setData
void setData(const uint16_t &d)
Definition:
packet.cpp:25
create::Packet::~Packet
~Packet()
Definition:
packet.cpp:13
create::Packet::data
uint16_t data
Definition:
packet.h:39
create::Packet::dataMutex
std::mutex dataMutex
Definition:
packet.h:41
create::Packet::validate
void validate()
Definition:
packet.cpp:20
libcreate
Author(s): Jacob Perron
autogenerated on Sat May 8 2021 03:02:37