RAVENNAKIT
Loading...
Searching...
No Matches
ravenna_node.hpp File Reference

Go to the source code of this file.

Classes

class  rav::RavennaNode
 This class contains all the components to act like a RAVENNA node as specified in the RAVENNA protocol. More...
struct  rav::RavennaNode::Configuration
 Holds the configuration of the node. More...
class  rav::RavennaNode::Subscriber
 Base class for classes which want to receive updates from the ravenna node. More...

Namespaces

namespace  rav

Macros

#define RAV_ASSERT_NODE_MAINTENANCE_THREAD(node)
 Little helper macro to assert that the current thread is the maintenance thread of given node.

Functions

std::string rav::to_string (const RavennaNode::Configuration &configuration)

Macro Definition Documentation

◆ RAV_ASSERT_NODE_MAINTENANCE_THREAD

#define RAV_ASSERT_NODE_MAINTENANCE_THREAD ( node)
Value:
RAV_ASSERT((node).is_maintenance_thread(), "Not on maintenance thread")
#define RAV_ASSERT(condition, message)
Asserts condition to be true, otherwise:
Definition assert.hpp:101

Little helper macro to assert that the current thread is the maintenance thread of given node.

Done as macro to keep the location information.

Parameters
nodeThe node to check the maintenance thread for.

Definition at line 439 of file ravenna_node.hpp.