16 #ifndef __VOM_ROUTE_DOMAIN_H__ 17 #define __VOM_ROUTE_DOMAIN_H__ 71 std::shared_ptr<route_domain>
singular()
const;
91 static std::shared_ptr<route_domain>
find(
const key_t& temp);
96 static void dump(std::ostream& os);
101 static std::shared_ptr<route_domain>
get_default();
126 void handle_replay();
131 void show(std::ostream& os);
152 static std::shared_ptr<route_domain> find_or_add(
const route_domain& temp);
188 static
singular_db<route::table_id_t, route_domain> m_db;
bool operator==(const route_domain &r) const
comparison operator - for UT
uint32_t table_id_t
type def the table-id
static std::shared_ptr< route_domain > find(const key_t &temp)
Find the instnace of the route domain in the OM.
route::table_id_t table_id() const
Get the table ID.
std::string to_string() const
Debug print function.
const std::string key_t
In the opflex world each entity is known by a URI which can be converted into a string.
A HW::item is data that is either to be written to or read from VPP/HW.
key_t key() const
Get the route-domain's key.
singular_db< const key_t, route_domain >::const_iterator const_iterator_t
The iterator type.
static std::shared_ptr< route_domain > get_default()
Return the sigular instance for the default table.
void replay(void)
replay the object to create it in hardware
A Database to store the unique 'singular' instances of a single object type.
Class definition for listeners to OM events.
inspect command handler Handler
std::map< KEY, std::weak_ptr< OBJ > >::const_iterator const_iterator
Iterator.
void event_handler(void *tls_async)
dependency_t
There needs to be a strict order in which object types are read from VPP (at boot time) and replayed ...
The interface to writing objects into VPP OM.
A base class for all object_base in the VPP object_base-Model.
route_domain(route::table_id_t id)
Construct a new object matching the desried state.
The VPP Object Model (VOM) library.
std::shared_ptr< route_domain > singular() const
Return the matching 'singular instance'.
static const_iterator_t cbegin()
~route_domain()
Destructor.
static const_iterator_t cend()
static void dump(std::ostream &os)
Dump all route-doamin into the stream provided.
route::table_id_t key_t
The Key for a route-domain.