Time-of-Flight Library(ToF) 4.1.17
chronoptics::tof::PersistentIp Class Reference

A persistent ip data structure. More...

#include <camera.hpp>

Inheritance diagram for chronoptics::tof::PersistentIp:

Public Member Functions

 PersistentIp (tof_persistent_ip_t ptr=nullptr)
 Construct from pointer.
 PersistentIp (StringView ip, StringView netmask, StringView gateway, bool enabled)
 Create persistent ip.
const char * get_ip () const
 Get the IP address.
void set_ip (StringView ip)
 Set the IP address.
const char * get_netmask () const
 Get the netmask.
void set_netmask (StringView netmask)
 Set the netmask.
const char * get_gateway () const
 Get the gateway.
void set_gateway (StringView gateway)
 Set the gateway.
bool get_enabled () const
 Get if persistent ip is enabled.
void set_enabled (bool enabled)
 Set if persistent ip is enabled.

Detailed Description

A persistent ip data structure.

Definition at line 300 of file camera.hpp.

Constructor & Destructor Documentation

◆ PersistentIp() [1/2]

chronoptics::tof::PersistentIp::PersistentIp ( tof_persistent_ip_t ptr = nullptr)
inline

Construct from pointer.

Definition at line 303 of file camera.hpp.

Referenced by PersistentIp().

◆ PersistentIp() [2/2]

chronoptics::tof::PersistentIp::PersistentIp ( StringView ip,
StringView netmask,
StringView gateway,
bool enabled )
inline

Create persistent ip.

Parameters
ipIP address
netmaskNetmask
gatewayGateway
enabledEnable or disable persistent ip

Definition at line 313 of file camera.hpp.

References PersistentIp().

Member Function Documentation

◆ get_enabled()

bool chronoptics::tof::PersistentIp::get_enabled ( ) const
inline

Get if persistent ip is enabled.

Returns
Is enabled

Definition at line 360 of file camera.hpp.

◆ get_gateway()

const char * chronoptics::tof::PersistentIp::get_gateway ( ) const
inline

Get the gateway.

Returns
The gateway

Definition at line 346 of file camera.hpp.

◆ get_ip()

const char * chronoptics::tof::PersistentIp::get_ip ( ) const
inline

Get the IP address.

Returns
the IP address

Definition at line 318 of file camera.hpp.

◆ get_netmask()

const char * chronoptics::tof::PersistentIp::get_netmask ( ) const
inline

Get the netmask.

Returns
The netmask

Definition at line 332 of file camera.hpp.

◆ set_enabled()

void chronoptics::tof::PersistentIp::set_enabled ( bool enabled)
inline

Set if persistent ip is enabled.

Parameters
enabledIs enabled

Definition at line 367 of file camera.hpp.

◆ set_gateway()

void chronoptics::tof::PersistentIp::set_gateway ( StringView gateway)
inline

Set the gateway.

Parameters
gatewayThe gateway

Definition at line 353 of file camera.hpp.

◆ set_ip()

void chronoptics::tof::PersistentIp::set_ip ( StringView ip)
inline

Set the IP address.

Parameters
ipthe IP address

Definition at line 325 of file camera.hpp.

◆ set_netmask()

void chronoptics::tof::PersistentIp::set_netmask ( StringView netmask)
inline

Set the netmask.

Parameters
netmaskThe netmask

Definition at line 339 of file camera.hpp.