#include <avbts_osnet.hpp>
Class InterfaceName Provides methods for dealing with the network interface name
- Todo:
- : Destructor doesnt delete this->name.
InterfaceName::InterfaceName |
( |
| ) |
|
|
inline |
InterfaceName::InterfaceName |
( |
char * |
name, |
|
|
int |
length |
|
) |
| |
|
inline |
Initializes Interface name with name and size lenght+1
- Parameters
-
name | [in] String with the interface name |
length | Size of name |
Operator '<' overloading method. Compares cmp to the interface name.
- Parameters
-
- Returns
- TRUE if interface name is found to be less than cmd. FALSE otherwise
bool InterfaceName::operator== |
( |
const InterfaceName & |
cmp | ) |
const |
|
inline |
Operator '==' overloading method. Compares parameter cmp to the interface name.
- Parameters
-
- Returns
- TRUE if they are equal, FALSE otherwise
Operator '>' overloading method. Compares cmp to the interface name.
- Parameters
-
- Returns
- TRUE if the interface name is found to be greater than cmd. FALSE otherwise
bool InterfaceName::toString |
( |
char * |
string, |
|
|
size_t |
length |
|
) |
| |
|
inline |
Gets interface name from the class' internal variable.
- Parameters
-
string | [out] String to store interface's name |
length | Length of string |
- Returns
- TRUE if length is greater than size of interface name plus one. FALSE otherwise.
- Todo:
- If string is null, strncpy will fail silently.
The documentation for this class was generated from the following file: