OpenJAUS SAE SDK  6.0.0
Public Member Functions | Static Public Attributes | List of all members
openjaus::transport::JausAddress Class Reference

Class to redefine names for ANY_X and ALL_X without breaking existing user code. More...

#include <JausAddress.h>

Public Member Functions

 JausAddress ()
 
virtual ~JausAddress ()
 

Static Public Attributes

static const unsigned short ALL_SUBSYSTEMS = 65535
 
static const unsigned char ALL_NODES = 255
 
static const unsigned char ALL_COMPONENTS = 255
 
static const unsigned short ANY_SUBSYSTEM = 0
 
static const unsigned char ANY_NODE = 0
 
static const unsigned char ANY_COMPONENT = 0
 

Detailed Description

In the Address class, he ANY_SUBSYSTEM, ANY_NODE, and ANY_COMPONENT names are misleading since they really represent ALL subsystems, nodes, and components respectively and not ANY. In addition the THIS_SUBSYSTEM, THIS_NODE, THIS_COMPONENT names are also misleading this the values are 0. The way they are used are also confusing (e.g. in the Address::isValid method). We redefine the names to be more accurate and in a separate class so that the name changes don't adversely affect existing users.

Author
Name (name@.nosp@m.emai.nosp@m.l.com)

Constructor & Destructor Documentation

◆ JausAddress()

openjaus::transport::JausAddress::JausAddress ( )
inline

◆ ~JausAddress()

virtual openjaus::transport::JausAddress::~JausAddress ( )
inlinevirtual

Member Data Documentation

◆ ALL_COMPONENTS

const unsigned char openjaus::transport::JausAddress::ALL_COMPONENTS = 255
static

◆ ALL_NODES

const unsigned char openjaus::transport::JausAddress::ALL_NODES = 255
static

◆ ALL_SUBSYSTEMS

const unsigned short openjaus::transport::JausAddress::ALL_SUBSYSTEMS = 65535
static

◆ ANY_COMPONENT

const unsigned char openjaus::transport::JausAddress::ANY_COMPONENT = 0
static

◆ ANY_NODE

const unsigned char openjaus::transport::JausAddress::ANY_NODE = 0
static

◆ ANY_SUBSYSTEM

const unsigned short openjaus::transport::JausAddress::ANY_SUBSYSTEM = 0
static

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