Open Lighting Architecture
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
ola::network::InterfaceBuilder Class Reference

Detailed Description

An InterfaceBuilder, this can construct Interface objects

Public Member Functions

 InterfaceBuilder ()
void SetName (const string &name)
bool SetAddress (const string &ip_address)
void SetAddress (const IPV4Address &ip_address)
bool SetBroadcast (const string &broadcast_address)
void SetBroadcast (const IPV4Address &broadcast_address)
bool SetSubnetMask (const string &mask)
void SetSubnetMask (const IPV4Address &mask)
bool SetHardwareAddress (const string &mac_address)
void SetLoopback (bool loopback)
void Reset ()
Interface Construct ()

Constructor & Destructor Documentation

ola::network::InterfaceBuilder::InterfaceBuilder ( )

Create a new interface builder

Member Function Documentation

Interface ola::network::InterfaceBuilder::Construct ( )

Return a new interface object. Maybe in the future we should check that the broadcast address, ip address and netmask are consistent. We could even infer the broadcast_address if it isn't provided.

void ola::network::InterfaceBuilder::Reset ( )

Reset the builder object

bool ola::network::InterfaceBuilder::SetAddress ( const string &  ip_address)

Set the address of the interface to build.

bool ola::network::InterfaceBuilder::SetBroadcast ( const string &  broadcast_address)

Set the broadcast address of the interface to build.

bool ola::network::InterfaceBuilder::SetHardwareAddress ( const string &  mac_address)

Sets the hardware (mac) address.

Parameters
mac_addressa string in the form 'nn:nn:nn:nn:nn:nn' or 'nn.nn.nn.nn.nn.nn'
void ola::network::InterfaceBuilder::SetLoopback ( bool  loopback)

Set the loopback flag.

bool ola::network::InterfaceBuilder::SetSubnetMask ( const string &  mask)

Set the subnet mask of the interface to build.


The documentation for this class was generated from the following files: