11#ifndef GI_LLDP_CONFIG_HPP
12#define GI_LLDP_CONFIG_HPP
14#include <boost/optional.hpp>
15#include "opflex/modb/URIBuilder.h"
16#include "opflex/modb/mo-internal/MO.h"
22 :
public opflex::modb::mointernal::MO
29 static const opflex::modb::class_id_t
CLASS_ID = 65;
44 boost::optional<const std::string&>
getName()
100 boost::optional<const uint8_t>
getRx()
156 boost::optional<const uint8_t>
getTx()
210 static boost::optional<OF_SHARED_PTR<modelgbp::lldp::Config> >
resolve(
212 const opflex::modb::URI&
uri)
228 static boost::optional<OF_SHARED_PTR<modelgbp::lldp::Config> >
resolve(
229 const opflex::modb::URI&
uri)
231 return opflex::modb::mointernal::MO::resolve<modelgbp::lldp::Config>(opflex::ofcore::OFFramework::defaultInstance(),
CLASS_ID,
uri);
250 static boost::optional<OF_SHARED_PTR<modelgbp::lldp::Config> >
resolve(
272 static boost::optional<OF_SHARED_PTR<modelgbp::lldp::Config> >
resolve(
302 const opflex::modb::URI&
uri)
319 remove(opflex::ofcore::OFFramework::defaultInstance(),
uri);
376 opflex::modb::ObjectListener*
listener)
378 opflex::modb::mointernal
394 opflex::modb::ObjectListener*
listener)
407 opflex::modb::ObjectListener*
listener)
409 opflex::modb::mointernal
420 opflex::modb::ObjectListener*
listener)
431 const opflex::modb::URI&
uri,
Definition lldp/Config.hpp:23
static boost::optional< OF_SHARED_PTR< modelgbp::lldp::Config > > resolve(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Retrieve an instance of Config from the managed object store.
Definition lldp/Config.hpp:210
bool isTxSet()
Check whether tx has been set.
Definition lldp/Config.hpp:147
static void remove(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri)
Remove the Config object with the specified URI using the currently-active mutator.
Definition lldp/Config.hpp:301
Config(opflex::ofcore::OFFramework &framework, const opflex::modb::URI &uri, const OF_SHARED_PTR< const opflex::modb::mointernal::ObjectInstance > &oi)
Construct an instance of Config.
Definition lldp/Config.hpp:429
static void unregisterListener(opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class from the default framework instance.
Definition lldp/Config.hpp:419
modelgbp::lldp::Config & unsetName()
Unset name in the currently-active mutator.
Definition lldp/Config.hpp:81
modelgbp::lldp::Config & setTx(const uint8_t newValue)
Set tx to the specified value in the currently-active mutator.
Definition lldp/Config.hpp:181
static void registerListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Register a listener that will get called for changes related to this class.
Definition lldp/Config.hpp:374
const uint8_t getTx(const uint8_t defaultValue)
Get the value of tx if set, otherwise the value of default passed in.
Definition lldp/Config.hpp:168
static void remove(opflex::ofcore::OFFramework &framework, const std::string &platformConfigName)
Remove the Config object with the specified path elements from the managed object store.
Definition lldp/Config.hpp:336
static void remove(const std::string &platformConfigName)
Remove the Config object with the specified path elements from the managed object store using the def...
Definition lldp/Config.hpp:357
bool isNameSet()
Check whether name has been set.
Definition lldp/Config.hpp:35
boost::optional< const uint8_t > getTx()
Get the value of tx if it has been set.
Definition lldp/Config.hpp:156
void remove()
Remove this instance using the currently-active mutator.
Definition lldp/Config.hpp:286
bool isRxSet()
Check whether rx has been set.
Definition lldp/Config.hpp:91
static void registerListener(opflex::modb::ObjectListener *listener)
Register a listener that will get called for changes related to this class with the default framework...
Definition lldp/Config.hpp:393
static boost::optional< OF_SHARED_PTR< modelgbp::lldp::Config > > resolve(const std::string &platformConfigName)
Retrieve an instance of Config from the default managed object store by constructing its URI from the...
Definition lldp/Config.hpp:272
static const opflex::modb::class_id_t CLASS_ID
The unique class ID for Config.
Definition lldp/Config.hpp:29
modelgbp::lldp::Config & unsetTx()
Unset tx in the currently-active mutator.
Definition lldp/Config.hpp:193
modelgbp::lldp::Config & setRx(const uint8_t newValue)
Set rx to the specified value in the currently-active mutator.
Definition lldp/Config.hpp:125
const std::string & getName(const std::string &defaultValue)
Get the value of name if set, otherwise the value of default passed in.
Definition lldp/Config.hpp:56
modelgbp::lldp::Config & unsetRx()
Unset rx in the currently-active mutator.
Definition lldp/Config.hpp:137
boost::optional< const std::string & > getName()
Get the value of name if it has been set.
Definition lldp/Config.hpp:44
static boost::optional< OF_SHARED_PTR< modelgbp::lldp::Config > > resolve(const opflex::modb::URI &uri)
Retrieve an instance of Config from the managed object store using the default framework instance.
Definition lldp/Config.hpp:228
const uint8_t getRx(const uint8_t defaultValue)
Get the value of rx if set, otherwise the value of default passed in.
Definition lldp/Config.hpp:112
static void remove(const opflex::modb::URI &uri)
Remove the Config object with the specified URI using the currently-active mutator and the default fr...
Definition lldp/Config.hpp:317
static void unregisterListener(opflex::ofcore::OFFramework &framework, opflex::modb::ObjectListener *listener)
Unregister a listener from updates to this class.
Definition lldp/Config.hpp:405
boost::optional< const uint8_t > getRx()
Get the value of rx if it has been set.
Definition lldp/Config.hpp:100
static boost::optional< OF_SHARED_PTR< modelgbp::lldp::Config > > resolve(opflex::ofcore::OFFramework &framework, const std::string &platformConfigName)
Retrieve an instance of Config from the managed object store by constructing its URI from the path el...
Definition lldp/Config.hpp:250
modelgbp::lldp::Config & setName(const std::string &newValue)
Set name to the specified value in the currently-active mutator.
Definition lldp/Config.hpp:69
SOME COPYRIGHT.
Definition OpcodeEnumT.hpp:12