Laelaps  2.3.5
RoadNarrows Robotics Small Outdoor Mobile Robot Project
laelaps::LaeDescImu Class Reference

Robotic built-in IMU description. More...

#include <laeDesc.h>

Public Member Functions

 LaeDescImu ()
 Default constructor.
 
virtual ~LaeDescImu ()
 Destructor.
 
LaeDescImu operator= (const LaeDescImu &rhs)
 Assignment operator. More...
 
void clear ()
 Clear description.
 
virtual void print (int indent=0)
 Print out description to stdout. More...
 

Public Attributes

std::string m_strKey
 base key
 
std::string m_strHw
 hardware
 
std::string m_strFw
 firmware
 

Detailed Description

Robotic built-in IMU description.

Definition at line 350 of file laeDesc.h.

Member Function Documentation

LaeDescImu LaeDescImu::operator= ( const LaeDescImu rhs)

Assignment operator.

Parameters
rhsRight hand side object.
Returns
this.

Definition at line 494 of file laeDesc.cxx.

References m_strFw, m_strHw, and m_strKey.

495 {
496  m_strKey = rhs.m_strKey;
497  m_strHw = rhs.m_strHw;
498  m_strFw = rhs.m_strFw;
499 
500  return *this;
501 }
std::string m_strHw
hardware
Definition: laeDesc.h:354
std::string m_strFw
firmware
Definition: laeDesc.h:355
std::string m_strKey
base key
Definition: laeDesc.h:353
void LaeDescImu::print ( int  indent = 0)
virtual

Print out description to stdout.

Parameters
indentLeft indentation.

Definition at line 510 of file laeDesc.cxx.

References m_strFw, m_strHw, m_strKey, laelaps::LaeDescOptions::PkgOptDeluxe, and laelaps::LaeDescOptions::PkgOptStd.

Referenced by laelaps::LaeDesc::print().

511 {
512  printf("%*sIMU Description =\n", indent, "");
513  printf("%*s{\n", indent, "");
514  printf("%*sKey = %s\n", indent+2, "", m_strKey.c_str());
515  printf("%*sHardware = %s\n", indent+2, "", m_strHw.c_str());
516  printf("%*sFirmware = %s\n", indent+2, "", m_strFw.c_str());
517  printf("%*s}\n", indent, "");
518 }
std::string m_strHw
hardware
Definition: laeDesc.h:354
std::string m_strFw
firmware
Definition: laeDesc.h:355
std::string m_strKey
base key
Definition: laeDesc.h:353

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