DUNE: Uniform Navigational Environment  2.6.0-rc4
Transports::SUNSET::Plan Class Reference

Public Member Functions

 Plan (void)
 
- Public Member Functions inherited from Transports::SUNSET::AbstractCommand
 AbstractCommand (void)
 
 AbstractCommand (const std::string &name, unsigned version=0)
 
virtual ~AbstractCommand (void)
 
void clear (void)
 
AbstractCommandsetVersion (unsigned version)
 
unsigned getVersion (void) const
 
AbstractCommandsetName (const std::string &name)
 
std::string getName (void) const
 
AbstractCommandsetSource (unsigned addr)
 
unsigned getSource (void) const
 
AbstractCommandsetDestination (unsigned addr)
 
AbstractCommandclearDestination (unsigned addr)
 
const std::set< unsigned > & getDestinations (void) const
 
AbstractCommandsetDestinations (const std::set< unsigned > &dsts)
 
AbstractCommandsetTTL (unsigned value)
 
unsigned getTTL (void) const
 
AbstractCommandsetFlags (unsigned value)
 
unsigned getFlags (void) const
 
AbstractCommandsetPriority (unsigned value)
 
unsigned getPriority (void) const
 
std::string encode (void) const
 
void toText (std::ostream &os) const
 
bool operator== (const AbstractCommand &b) const
 
bool operator!= (const AbstractCommand &b) const
 

Public Attributes

std::vector< Maneuver * > maneuver_list
 

Protected Member Functions

size_t encodeArgs (std::vector< std::string > &args__) const
 
size_t decodeArgs (const std::vector< std::string > &args__, size_t index__)
 
void toTextArgs (std::ostream &os__) const
 

Additional Inherited Members

- Public Types inherited from Transports::SUNSET::AbstractCommand
enum  Flags { FLAG_LAST }
 
enum  Offset {
  OFFS_PREFIX, OFFS_VERSION, OFFS_FLAGS, OFFS_TTL,
  OFFS_PRIORITY, OFFS_SRC, OFFS_DST_COUNT, OFFS_DST,
  OFFS_LAST
}
 
- Static Public Member Functions inherited from Transports::SUNSET::AbstractCommand
static uint16_t getCRC (const std::string &cmd)
 
static uint16_t computeCRC (const std::string &str, size_t size)
 
static std::string getFlagList (unsigned flags)
 

Constructor & Destructor Documentation

Transports::SUNSET::Plan::Plan ( void  )
inline

Member Function Documentation

size_t Transports::SUNSET::Plan::decodeArgs ( const std::vector< std::string > &  args__,
size_t  index__ 
)
inlineprotectedvirtual
size_t Transports::SUNSET::Plan::encodeArgs ( std::vector< std::string > &  args__) const
inlineprotectedvirtual
void Transports::SUNSET::Plan::toTextArgs ( std::ostream &  os__) const
inlineprotectedvirtual

Member Data Documentation

std::vector<Maneuver*> Transports::SUNSET::Plan::maneuver_list

Referenced by decodeArgs(), encodeArgs(), and Plan().

Collaboration diagram for Transports::SUNSET::Plan:
Collaboration graph