30 #ifndef FACTORY4ROBOTINFO_H 31 #define FACTORY4ROBOTINFO_H 61 , state(STATE_Unknown)
64 _ipAddress =
new char[1];
69 : robotinoId(other.robotinoId)
73 , batteryVoltage(other.batteryVoltage)
74 , laserWarning(other.laserWarning)
75 , laserSafety(other.laserSafety)
76 , boxPresent(other.boxPresent)
90 robotinoId = other.robotinoId;
94 batteryVoltage = other.batteryVoltage;
95 laserWarning = other.laserWarning;
96 laserSafety = other.laserSafety;
97 boxPresent = other.boxPresent;
105 const char* ipAddress()
const 120 _ipAddress =
new char[1];
125 size_t len = strlen(ipAddress);
126 _ipAddress =
new char[len + 1];
127 strncpy(_ipAddress, ipAddress, len + 1);
135 float batteryVoltage;
171 for (
int i = 0; i < _size; ++i)
173 _data[i] = other._data[i];
183 const unsigned int size()
const 204 if( other._size > 0 )
208 for (
int i = 0; i < _size; ++i)
210 _data[i] = other._data[i];
224 #endif // FACTORY4STATE_H void setIpAddress(const char *ipAddress)
Definition: Factory4RobotInfo.h:114
const Factory4RobotInfo & operator[](int index) const
Enables access via index.
Definition: Factory4RobotInfo.h:189
Definition: AnalogInput.h:36
Definition: Factory4RobotInfo.h:41
Definition: Factory4RobotInfo.h:145