|
Friendly LWM2M client
|
The ItemOp struct represents the operations that can be performed on a instance/resource. More...
#include <ItemOp.h>
Collaboration diagram for wpp::ItemOp:Public Types | |
| enum | TYPE : uint8_t { NONE = 0 , READ = 1 , WRITE = 2 , EXECUTE = 4 , DISCOVER = 8 , CREATE = 16 , DELETE = 32 } |
| Enum representing the different types of operations. More... | |
Public Member Functions | |
| ItemOp (uint8_t flags=TYPE::NONE) | |
| Constructs a ItemOp object with the specified flags. More... | |
| bool | isSupported (TYPE type) const |
| Checks if a specific operation is supported. More... | |
| bool | isCompatible (const ItemOp &operation) const |
| Checks if the ItemOp object is compatible with another ItemOp object. More... | |
| bool | isRead () const |
| Checks if the ItemOp object represents a read operation. More... | |
| bool | isWrite () const |
| Checks if the ItemOp object represents a write operation. More... | |
| bool | isExecute () const |
| Checks if the ItemOp object represents an execute operation. More... | |
| bool | isDiscover () const |
| Checks if the ItemOp object represents a discover operation. More... | |
| bool | isCreate () const |
| Checks if the operation is of type CREATE. More... | |
| bool | isDelete () const |
| Checks if the operation is of type DELETE. More... | |
| uint8_t | getFlags () const |
| Retrieves the flags representing the operations. More... | |
| std::vector< TYPE > | asVector () const |
| Converts the flags into a vector of operation types. More... | |
The ItemOp struct represents the operations that can be performed on a instance/resource.
This struct defines a set of operations that can be performed on a instance/resource. Each operation is represented by a flag value, which can be combined using bitwise OR to represent multiple operations.
The ItemOp struct provides methods to check if a specific operation is supported, check compatibility with another ItemOp object, and retrieve the flags representing the operations.
The ItemOp struct also provides methods to check if an operation is of a specific type, such as read, write, execute, discover, delete or create.
Additionally, the ItemOp struct provides a method to convert the flags into a vector of operation types.
| enum wpp::ItemOp::TYPE : uint8_t |
|
inline |
|
inline |
|
inline |
|
inline |
Checks if the ItemOp object is compatible with another ItemOp object.
Two ItemOp objects are compatible if their flags have the same operations.
| operation | The ItemOp object to check compatibility with. |
Definition at line 63 of file ItemOp.h.
Here is the caller graph for this function:
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |