Public Member Functions | Static Public Member Functions | Private Attributes
DroneRole Class Reference

Class definition to handle drone roles objects. More...

#include <drone_role.h>

List of all members.

Public Member Functions

 DroneRole (std::string name)
 Contructor.
ucl_drone::DroneRole DroneRoleToMsg ()
int GetDroneRole ()
void MsgToDroneRole ()
void SetDroneRole (int role)
void SetDroneRole (int role, std::vector< std::string > params)
void SetDroneRole (int role, std::string param)
void SetDroneRole (int role, int number_of_params,...)
 ~DroneRole ()
 Destructor.

Static Public Member Functions

static ucl_drone::DroneRoles DroneRolesToMsg (std::vector< DroneRole > roles)

Private Attributes

std::string name
 Drone name.
std::vector< std::string > parameters
 A vector of strings to use as parameters.
int role
 Identification number of the role (see ucl_drone.h for definitions)

Detailed Description

Class definition to handle drone roles objects.

Definition at line 32 of file drone_role.h.


Constructor & Destructor Documentation

DroneRole::DroneRole ( std::string  name)

Contructor.

Parameters:
[in]nameString containing the name of the drone

Definition at line 14 of file drone_role.cpp.

Destructor.

Definition at line 20 of file drone_role.cpp.


Member Function Documentation

ucl_drone::DroneRoles DroneRole::DroneRolesToMsg ( std::vector< DroneRole roles) [static]

Definition at line 78 of file drone_role.cpp.

Definition at line 65 of file drone_role.cpp.

Definition at line 60 of file drone_role.cpp.

Definition at line 74 of file drone_role.cpp.

void DroneRole::SetDroneRole ( int  role)

Definition at line 24 of file drone_role.cpp.

void DroneRole::SetDroneRole ( int  role,
std::vector< std::string >  params 
)

Definition at line 30 of file drone_role.cpp.

void DroneRole::SetDroneRole ( int  role,
std::string  param 
)

Definition at line 37 of file drone_role.cpp.

void DroneRole::SetDroneRole ( int  role,
int  number_of_params,
  ... 
)

Definition at line 44 of file drone_role.cpp.


Member Data Documentation

std::string DroneRole::name [private]

Drone name.

Definition at line 39 of file drone_role.h.

std::vector< std::string > DroneRole::parameters [private]

A vector of strings to use as parameters.

Definition at line 38 of file drone_role.h.

int DroneRole::role [private]

Identification number of the role (see ucl_drone.h for definitions)

Definition at line 37 of file drone_role.h.


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


ucl_drone
Author(s): dronesinma
autogenerated on Sat Jun 8 2019 20:51:53