gusimplewhiteboard
guWhiteboard::VisionDetectionGoal Class Reference

Provides a C++ wrapper around wb_vision_detection_goal. More...

#include <VisionDetectionGoal.hpp>

Inheritance diagram for guWhiteboard::VisionDetectionGoal:
Collaboration diagram for guWhiteboard::VisionDetectionGoal:

Public Member Functions

 VisionDetectionGoal (enum GoalOptions t_sightingType=NoGoalDetected, struct wb_vision_detection_goal_post t_post1=wb_vision_detection_goal_post(), struct wb_vision_detection_goal_post t_post2=wb_vision_detection_goal_post())
 Create a new VisionDetectionGoal. More...
 
 VisionDetectionGoal (const VisionDetectionGoal &t_other)
 Copy Constructor. More...
 
 VisionDetectionGoal (const struct wb_vision_detection_goal &t_other)
 Copy Constructor. More...
 
VisionDetectionGoaloperator= (const VisionDetectionGoal &t_other)
 Copy Assignment Operator. More...
 
VisionDetectionGoaloperator= (const struct wb_vision_detection_goal &t_other)
 Copy Assignment Operator. More...
 
bool operator== (const VisionDetectionGoal &t_other) const
 
bool operator!= (const VisionDetectionGoal &t_other) const
 
bool operator== (const wb_vision_detection_goal &t_other) const
 
bool operator!= (const wb_vision_detection_goal &t_other) const
 
enum GoalOptionssightingType ()
 
enum GoalOptionssightingType () const
 
void set_sightingType (const enum GoalOptions &t_newValue)
 
VisionDetectionGoalPostpost1 ()
 
const VisionDetectionGoalPostpost1 () const
 
void set_post1 (const VisionDetectionGoalPost &t_newValue)
 
VisionDetectionGoalPostpost2 ()
 
const VisionDetectionGoalPostpost2 () const
 
void set_post2 (const VisionDetectionGoalPost &t_newValue)
 
 VisionDetectionGoal (const std::string &t_str)
 String Constructor. More...
 
std::string description ()
 
std::string to_string ()
 
void from_string (const std::string &t_str)
 

Additional Inherited Members

- Public Attributes inherited from wb_vision_detection_goal
enum GoalOptions sightingType
 Goal detection details. More...
 
struct wb_vision_detection_goal_post post1
 First post found. More...
 
struct wb_vision_detection_goal_post post2
 Second post found. More...
 

Detailed Description

Provides a C++ wrapper around wb_vision_detection_goal.

Definition at line 85 of file VisionDetectionGoal.hpp.

Constructor & Destructor Documentation

◆ VisionDetectionGoal() [1/4]

guWhiteboard::VisionDetectionGoal::VisionDetectionGoal ( enum GoalOptions  t_sightingType = NoGoalDetected,
struct wb_vision_detection_goal_post  t_post1 = wb_vision_detection_goal_post(),
struct wb_vision_detection_goal_post  t_post2 = wb_vision_detection_goal_post() 
)
inline

Create a new VisionDetectionGoal.

Definition at line 103 of file VisionDetectionGoal.hpp.

Referenced by operator==().

◆ VisionDetectionGoal() [2/4]

guWhiteboard::VisionDetectionGoal::VisionDetectionGoal ( const VisionDetectionGoal t_other)
inline

Copy Constructor.

Definition at line 110 of file VisionDetectionGoal.hpp.

References post1(), post2(), and sightingType().

◆ VisionDetectionGoal() [3/4]

guWhiteboard::VisionDetectionGoal::VisionDetectionGoal ( const struct wb_vision_detection_goal t_other)
inline

◆ VisionDetectionGoal() [4/4]

guWhiteboard::VisionDetectionGoal::VisionDetectionGoal ( const std::string &  t_str)
inline

String Constructor.

Definition at line 208 of file VisionDetectionGoal.hpp.

References from_string().

Member Function Documentation

◆ description()

std::string guWhiteboard::VisionDetectionGoal::description ( )
inline

◆ from_string()

void guWhiteboard::VisionDetectionGoal::from_string ( const std::string &  t_str)
inline

◆ operator!=() [1/2]

bool guWhiteboard::VisionDetectionGoal::operator!= ( const VisionDetectionGoal t_other) const
inline

Definition at line 144 of file VisionDetectionGoal.hpp.

◆ operator!=() [2/2]

bool guWhiteboard::VisionDetectionGoal::operator!= ( const wb_vision_detection_goal t_other) const
inline

Definition at line 154 of file VisionDetectionGoal.hpp.

◆ operator=() [1/2]

VisionDetectionGoal & guWhiteboard::VisionDetectionGoal::operator= ( const struct wb_vision_detection_goal t_other)
inline

◆ operator=() [2/2]

VisionDetectionGoal & guWhiteboard::VisionDetectionGoal::operator= ( const VisionDetectionGoal t_other)
inline

Copy Assignment Operator.

Definition at line 124 of file VisionDetectionGoal.hpp.

References post1(), post2(), and sightingType().

◆ operator==() [1/2]

bool guWhiteboard::VisionDetectionGoal::operator== ( const VisionDetectionGoal t_other) const
inline

Definition at line 137 of file VisionDetectionGoal.hpp.

References post1(), post2(), and sightingType().

◆ operator==() [2/2]

bool guWhiteboard::VisionDetectionGoal::operator== ( const wb_vision_detection_goal t_other) const
inline

Definition at line 149 of file VisionDetectionGoal.hpp.

References VisionDetectionGoal().

◆ post1() [1/2]

VisionDetectionGoalPost & guWhiteboard::VisionDetectionGoal::post1 ( )
inline

◆ post1() [2/2]

const VisionDetectionGoalPost & guWhiteboard::VisionDetectionGoal::post1 ( ) const
inline

Definition at line 179 of file VisionDetectionGoal.hpp.

References wb_vision_detection_goal::post1.

◆ post2() [1/2]

VisionDetectionGoalPost & guWhiteboard::VisionDetectionGoal::post2 ( )
inline

◆ post2() [2/2]

const VisionDetectionGoalPost & guWhiteboard::VisionDetectionGoal::post2 ( ) const
inline

Definition at line 194 of file VisionDetectionGoal.hpp.

References wb_vision_detection_goal::post2.

◆ set_post1()

void guWhiteboard::VisionDetectionGoal::set_post1 ( const VisionDetectionGoalPost t_newValue)
inline

Definition at line 184 of file VisionDetectionGoal.hpp.

References wb_vision_detection_goal::post1.

Referenced by from_string().

◆ set_post2()

void guWhiteboard::VisionDetectionGoal::set_post2 ( const VisionDetectionGoalPost t_newValue)
inline

Definition at line 199 of file VisionDetectionGoal.hpp.

References wb_vision_detection_goal::post2.

Referenced by from_string().

◆ set_sightingType()

void guWhiteboard::VisionDetectionGoal::set_sightingType ( const enum GoalOptions t_newValue)
inline

Definition at line 169 of file VisionDetectionGoal.hpp.

References wb_vision_detection_goal::sightingType.

Referenced by from_string().

◆ sightingType() [1/2]

enum GoalOptions & guWhiteboard::VisionDetectionGoal::sightingType ( )
inline

◆ sightingType() [2/2]

enum GoalOptions & guWhiteboard::VisionDetectionGoal::sightingType ( ) const
inline

Definition at line 164 of file VisionDetectionGoal.hpp.

References wb_vision_detection_goal::sightingType.

◆ to_string()

std::string guWhiteboard::VisionDetectionGoal::to_string ( )
inline

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