|
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
36 #ifndef DSCONSTANTS_HPP_
37 #define DSCONSTANTS_HPP_
72 static bool isValid(
int min,
int max,
int val) {
73 return (val >= min && val < max);
int _id
Indicates the id of the instance inheriting this class.
DSConstant()
This function is the default constructor for DSConstant. It initializes the DSConstant instance with ...
bool enabled
Indicates the port or port attributes inheriting this class is enabled or not.
This class is used to store and manage the names and id's. It is derived by many classes like VideoRe...
static bool isValid(int min, int max, int val)
This function checks if the given value lies between min and max values provided.
void enable()
This function is used to indicate that the port or port attribute calling this function are enabled.
DSConstant(const int id, const std::string &name)
This function is a parameterised constructor for DSConstant. It initializes the DSConstant instance w...
std::string _name
Indicates the name string of the instance inheriting this class.
This class is inherited by many classes in DS for getting the ID.
bool isEnabled() const
This function is used to check if the calling object is enabled or not. The calling object can be an ...
virtual const std::string & getName() const
This function is used to the get the data member name.
virtual const std::string & toString() const
This function is used to the get the data member name in string format.
This file defines Enumerable class.
virtual bool operator==(int id) const
This function is an operator overloading for == operator. It checks if the id of DSConstant instance ...
virtual ~DSConstant()
This function is the default destructor for DSConstant.
virtual int getId() const
This function is used to get the id.