MeshNet
1.0.0
|
This file contains classes and structures that supports meshNet. More...
#include "meshConfig.h"
Go to the source code of this file.
Data Structures | |
class | InlinePrintable |
Interface for printing derived class collection as table with header and rows. More... | |
class | RawPrintable |
Interface for converting class or structure instance to raw bytes, which can be sent. More... | |
struct | MeshMAC |
Structure that represents physical MAC address used in MeshNEt protocol. MeshMAC address unlike MAC address used in TCP/IP protocol has just 4 octets. More... | |
struct | MeshVersion |
Structure that represents MeshNet version. Real size of this class is always 2 bytes. More... | |
Macros | |
#define | HAS_MEM_FUNC(func, name) |
This macro creates checker structure, which can check, if class contains member function. More... | |
Enumerations | |
enum | TextAlignment { T_LEFT, T_CENTER, T_RIGHT } |
Enumeration for text alignment in alignText() function. More... | |
enum | MeshPacketStatus { MPS_Unknown = 0, MPS_Sent, MPS_Waiting, MPS_WaitingForPath } |
Functions | |
char * | _itoa_s (int32_t value, char *buffer, size_t size, int radix) |
void | alignText (char *text, int size, char fill, TextAlignment alignment) |
Aligns text in char array. More... | |
#define HAS_MEM_FUNC | ( | func, | |
name | |||
) |
This macro creates checker structure, which can check, if class contains member function.
@macro HAS_MEM_FUNC
https://stackoverflow.com/a/264088
func | Name of function that needs to be checked. |
name | Name of generated checker structure. |
@begin Status of sent mesh packet.
Enumeration for text alignment in alignText() function.
Enumerator | |
---|---|
T_LEFT | |
T_CENTER | |
T_RIGHT |
char* _itoa_s | ( | int32_t | value, |
char * | buffer, | ||
size_t | size, | ||
int | radix | ||
) |
void alignText | ( | char * | text, |
int | size, | ||
char | fill, | ||
TextAlignment | alignment | ||
) |
Aligns text in char array.
text | Text array, that has to be aligned. Text has to end with \0 character. |
size | Size of text array. |
fill | Character, that will be inserted to blank space. |
alignment | Text alignment. |