RDK Documentation (Open Sourced RDK Components)
device::FrontPanelIndicator::Color Class Reference
Inheritance diagram for device::FrontPanelIndicator::Color:
Inheritance graph
Collaboration diagram for device::FrontPanelIndicator::Color:
Collaboration graph

Public Member Functions

 Color (int id)
 
virtual ~Color ()
 This function is the default destructor of class Color. More...
 
- Public Member Functions inherited from device::DSConstant
 DSConstant ()
 This function is the default constructor for DSConstant. It initializes the DSConstant instance with default values. More...
 
 DSConstant (const int id, const std::string &name)
 This function is a parameterised constructor for DSConstant. It initializes the DSConstant instance with the values passed as input parameter. More...
 
virtual ~DSConstant ()
 This function is the default destructor for DSConstant. More...
 
virtual bool operator== (int id) const
 This function is an operator overloading for == operator. It checks if the id of DSConstant instance is equal to the id passed as input parameter. More...
 
virtual int getId () const
 This function is used to get the id. More...
 
virtual const std::string & getName () const
 This function is used to the get the data member name. More...
 
virtual const std::string & toString () const
 This function is used to the get the data member name in string format. More...
 
void enable ()
 This function is used to indicate that the port or port attribute calling this function are enabled. More...
 
bool isEnabled () const
 This function is used to check if the calling object is enabled or not. The calling object can be an instance of video output port or audio output port or their attributes. More...
 

Static Public Member Functions

static const ColorgetInstance (int id)
 This function gets an instance of the Color with the specified id, only if the id passed is valid. More...
 
static const ColorgetInstance (const std::string &name)
 This function gets an instance of the Color corresponding to the specified name, only if the name passed is valid. More...
 

Static Public Attributes

static const int kBlue = dsFPD_COLOR_BLUE
 Indicates RGB value of blue color.
 
static const int kGreen = dsFPD_COLOR_GREEN
 Indicates RGB value of green color.
 
static const int kRed = dsFPD_COLOR_RED
 Indicates RGB value of red color.
 
static const int kYellow = dsFPD_COLOR_YELLOW
 Indicates RGB value of yellow color.
 
static const int kOrange = dsFPD_COLOR_ORANGE
 Indicates RGB value of orange color.
 
static const int kWhite = dsFPD_COLOR_WHITE
 Indicates RGB value of white color.
 
static const int kMax = dsFPD_COLOR_MAX
 Indicates maximum number of pre-defined colors.
 

Additional Inherited Members

- Static Protected Member Functions inherited from device::DSConstant
static bool isValid (int min, int max, int val)
 This function checks if the given value lies between min and max values provided. More...
 
- Protected Attributes inherited from device::DSConstant
int _id
 Indicates the id of the instance inheriting this class.
 
std::string _name
 Indicates the name string of the instance inheriting this class.
 

yes

Definition at line 67 of file frontPanelIndicator.hpp.

Constructor & Destructor Documentation

◆ ~Color()

Color::~Color ( )
inlinevirtual

This function is the default destructor of class Color.

Returns
None

Definition at line 88 of file frontPanelIndicator.hpp.


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