|
COFFI library utilities. More...
Go to the source code of this file.
Macros | |
#define | STRINGIFY(NAME) #NAME |
Macros for accessing the COFF structures fields | |
These macros provide a way to declare and define the get/set accessors to the COFF structures fields. The declaration functions *_DECL are used in virtual template classes. | |
#define | COFFI_GET_ACCESS_DECL(TYPE, NAME) virtual TYPE get_##NAME() const = 0 |
Declares a get_NAME function for accessing the NAME structure field. | |
#define | COFFI_SET_ACCESS_DECL(TYPE, NAME) virtual void set_##NAME(TYPE value) = 0 |
Declares a set_NAME function for accessing the NAME structure field. | |
#define | COFFI_GET_SET_ACCESS_DECL(TYPE, NAME) |
Declares a get_NAME and a set_NAME functions for accessing the NAME structure field. More... | |
#define | COFFI_GET_ACCESS(TYPE, NAME) TYPE get_##NAME() const { return header.NAME; } |
Defines a get_NAME function for accessing the NAME structure field. | |
#define | COFFI_SET_ACCESS(TYPE, NAME) void set_##NAME(TYPE value) { header.NAME = value; } |
Defines a set_NAME function for accessing the NAME structure field. | |
#define | COFFI_GET_SET_ACCESS(TYPE, NAME) |
Defines a get_NAME and a set_NAME functions for accessing the NAME structure field. More... | |
#define | COFFI_GET_ACCESS_NONE(TYPE, NAME) |
Disables the get_NAME function for prohibiting read accesses to the NAME structure field. More... | |
#define | COFFI_SET_ACCESS_NONE(TYPE, NAME) |
Disables the set_NAME function for prohibiting write accesses to the NAME structure field. More... | |
#define | COFFI_GET_SET_ACCESS_NONE(TYPE, NAME) |
Disables the get_NAME and the set_NAME function for prohibiting all accesses to the NAME structure field. More... | |
#define | COFFI_GET_SIZEOF_DECL() virtual size_t get_sizeof() const = 0 |
Declares the get_sizeof function for returning the size of the COFF file structure. | |
#define | COFFI_GET_SIZEOF() size_t get_sizeof() const { return sizeof(header); } |
Defines the get_sizeof function for returning the size of the COFF file structure. | |
COFFI library utilities.
Do not include this file directly. This file is included by coffi.hpp.
Definition in file coffi_utils.hpp.
#define COFFI_GET_ACCESS_NONE | ( | TYPE, | |
NAME | |||
) |
Disables the get_NAME function for prohibiting read accesses to the NAME structure field.
Definition at line 76 of file coffi_utils.hpp.
#define COFFI_GET_SET_ACCESS | ( | TYPE, | |
NAME | |||
) |
Defines a get_NAME and a set_NAME functions for accessing the NAME structure field.
Definition at line 71 of file coffi_utils.hpp.
#define COFFI_GET_SET_ACCESS_DECL | ( | TYPE, | |
NAME | |||
) |
Declares a get_NAME and a set_NAME functions for accessing the NAME structure field.
Definition at line 58 of file coffi_utils.hpp.
#define COFFI_GET_SET_ACCESS_NONE | ( | TYPE, | |
NAME | |||
) |
Disables the get_NAME and the set_NAME function for prohibiting all accesses to the NAME structure field.
Definition at line 92 of file coffi_utils.hpp.
#define COFFI_SET_ACCESS_NONE | ( | TYPE, | |
NAME | |||
) |
Disables the set_NAME function for prohibiting write accesses to the NAME structure field.
Definition at line 84 of file coffi_utils.hpp.