RoveComm C++ 3.0.0
Welcome to the RoveComm C++ repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of RoveComm C++. The RoveComm C++ project is the RoveComm interface for high level systems and should not be used for microcontrollers.
Loading...
Searching...
No Matches
manifest::AddressEntry Struct Reference

IP Address Object for RoveComm. Default is 0.0.0.0. More...

#include <RoveCommManifest.h>

Public Member Functions

constexpr AddressEntry () noexcept=default
constexpr AddressEntry (int first, int second, int third, int fourth) noexcept
template<std::convertible_to< std::string_view > T>
 AddressEntry (T tIP)
constexpr auto operator<=> (const AddressEntry &) const =default
std::string IP_STR () const

Public Attributes

int FIRST_OCTET {}
int SECOND_OCTET {}
int THIRD_OCTET {}
int FOURTH_OCTET {}

Detailed Description

IP Address Object for RoveComm. Default is 0.0.0.0.

Author
Missouri S&T - Mars Rover Design Team
Date
2026-10-26

Constructor & Destructor Documentation

◆ AddressEntry() [1/3]

manifest::AddressEntry::AddressEntry ( )
constexprdefaultnoexcept
Here is the caller graph for this function:

◆ AddressEntry() [2/3]

manifest::AddressEntry::AddressEntry ( int first,
int second,
int third,
int fourth )
inlineconstexprnoexcept
72 :
73 FIRST_OCTET(first), SECOND_OCTET(second), THIRD_OCTET(third), FOURTH_OCTET(fourth)
74 {}
int THIRD_OCTET
Definition RoveCommManifest.h:67
int FOURTH_OCTET
Definition RoveCommManifest.h:68
int FIRST_OCTET
Definition RoveCommManifest.h:65
int SECOND_OCTET
Definition RoveCommManifest.h:66
Here is the call graph for this function:

◆ AddressEntry() [3/3]

template<std::convertible_to< std::string_view > T>
manifest::AddressEntry::AddressEntry ( T tIP)
inline
78 {
79 std::string_view svIP{tIP};
80 size_t pos1 = svIP.find('.');
81 size_t pos2 = svIP.find('.', pos1 + 1);
82 size_t pos3 = svIP.find('.', pos2 + 1);
83 std::from_chars(svIP.data(), svIP.data() + pos1, FIRST_OCTET);
84 std::from_chars(svIP.data() + pos1 + 1, svIP.data() + pos2, SECOND_OCTET);
85 std::from_chars(svIP.data() + pos2 + 1, svIP.data() + pos3, THIRD_OCTET);
86 std::from_chars(svIP.data() + pos3 + 1, svIP.data() + svIP.size(), FOURTH_OCTET);
87 }

Member Function Documentation

◆ IP_STR()

std::string manifest::AddressEntry::IP_STR ( ) const
inline
94 {
95 return std::to_string(FIRST_OCTET) + "." + std::to_string(SECOND_OCTET) + "." + std::to_string(THIRD_OCTET) + "." + std::to_string(FOURTH_OCTET);
96 }
Here is the caller graph for this function:

◆ operator<=>()

auto manifest::AddressEntry::operator<=> ( const AddressEntry & ) const
constexprdefault
Here is the call graph for this function:

Member Data Documentation

◆ FIRST_OCTET

int manifest::AddressEntry::FIRST_OCTET {}
65{};

◆ FOURTH_OCTET

int manifest::AddressEntry::FOURTH_OCTET {}
68{};

◆ SECOND_OCTET

int manifest::AddressEntry::SECOND_OCTET {}
66{};

◆ THIRD_OCTET

int manifest::AddressEntry::THIRD_OCTET {}
67{};

The documentation for this struct was generated from the following file: