Wombat Environmental Node 1.0
An environmental node for SDI-12 and digital sensors.
Loading...
Searching...
No Matches
CommandURCVector< T > Class Template Reference

#include <Utils.h>

Inheritance diagram for CommandURCVector< T >:
Collaboration diagram for CommandURCVector< T >:

Public Member Functions

 CommandURCVector ()
 
void addPair (const T &value, int intValue)
 
bool hasURC (const T command, int *result)
 
bool waitForURC (const T command, int *result, int retries, const long delay_ms)
 

Constructor & Destructor Documentation

◆ CommandURCVector()

template<typename T >
CommandURCVector< T >::CommandURCVector ( )
inline

Member Function Documentation

◆ addPair()

template<typename T >
void CommandURCVector< T >::addPair ( const T &  value,
int  intValue 
)
inline

◆ hasURC()

template<typename T >
bool CommandURCVector< T >::hasURC ( const T  command,
int *  result 
)
inline

Check if the given command URC has been received. If so, put the result into result and remove the URC from the list and return true. Otherwise return false.

Parameters
commandthe command to look for.
resultthe result of the command if it was found, otherwise unchanged.
Returns
true if the command URC was found, otherwise false.

◆ waitForURC()

template<typename T >
bool CommandURCVector< T >::waitForURC ( const T  command,
int *  result,
int  retries,
const long  delay_ms 
)
inline

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