AnCH Framework  0.1
Another C++ Hack Framework
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | Static Public Member Functions | List of all members
anch::device::Network Class Reference

#include <network.hpp>

Collaboration diagram for anch::device::Network:

Public Member Functions

virtual ~Network ()
 

Static Public Member Functions

static const anch::device::NetworkInterfacegetInterface (const std::string &ifName) throw (anch::device::DeviceException)
 
static const std::map< std::string, anch::device::NetworkInterface > & getInterfaces () throw (anch::device::DeviceException)
 
static void reload () throw (anch::device::DeviceException)
 

Detailed Description

Network device utilities class

Author
Vincent Lachenal

Constructor & Destructor Documentation

Network::~Network ( )
virtual

Network configuration destructor

Member Function Documentation

const NetworkInterface * Network::getInterface ( const std::string &  ifName)
throw (anch::device::DeviceException
)
static

Retrieve network interface by its name.

Parameters
ifNamethe interface name
Returns
the interface if found, NULL otherwise
Exceptions
anch::device::DeviceExceptionNetwork interfaces error

Retrieve network interface by its name.

Parameters
ifNameThe interface name
Returns
The interface if found, NULL otherwise
Exceptions
DeviceExceptionNetwork interfaces error
const map< string, NetworkInterface > & Network::getInterfaces ( )
throw (anch::device::DeviceException
)
static

Retrieve all network interfaces.

Returns
the network interfaces
Exceptions
anch::device::DeviceExceptionNetwork interfaces error

Retrieve all network interfaces.

Returns
The network interfaces
Exceptions
DeviceExceptionNetwork interfaces error
void Network::reload ( )
throw (anch::device::DeviceException
)
static

Reload network interfaces

Exceptions
anch::device::DeviceExceptionNetwork interfaces error

Reload network interfaces

Exceptions
DeviceExceptionNetwork interfaces error

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