BSDL Device Tree Compiler
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | List of all members
dtc::fdt::checking::property_checker Class Referenceabstract
Inheritance diagram for dtc::fdt::checking::property_checker:
dtc::fdt::checking::checker dtc::fdt::checking::property_size_checker dtc::fdt::checking::property_type_checker< T > dtc::fdt::checking::property_type_checker< property_value::EMPTY > dtc::fdt::checking::property_type_checker< property_value::PHANDLE > dtc::fdt::checking::property_type_checker< property_value::STRING > dtc::fdt::checking::property_type_checker< property_value::STRING_LIST >

Public Member Functions

virtual bool check_property (device_tree *tree, node *n, property *p)
 
 property_checker (const char *name, string property_name)
 
virtual bool check (device_tree *tree, node *n, property *p)=0
 
- Public Member Functions inherited from dtc::fdt::checking::checker
 checker (const char *name)
 
virtual bool check_node (device_tree *tree, node *n)
 
bool check_tree (fdt::device_tree *tree)
 

Additional Inherited Members

- Protected Member Functions inherited from dtc::fdt::checking::checker
void report_error (const char *errmsg)
 

Detailed Description

Abstract base class for simple property checks. This class defines a check method for subclasses, which is invoked only when it finds a property with the matching name. To define simple property checkers, just subclass this and override the check() method.

Constructor & Destructor Documentation

dtc::fdt::checking::property_checker::property_checker ( const char *  name,
string  property_name 
)
inline

Constructor. Takes the name of the checker and the name of the property to check.

Member Function Documentation

virtual bool dtc::fdt::checking::property_checker::check ( device_tree tree,
node n,
property p 
)
pure virtual
virtual bool dtc::fdt::checking::property_checker::check_property ( device_tree tree,
node n,
property p 
)
inlinevirtual

Implementation of the generic property-checking method that checks for a property with the name specified in the constructor

Reimplemented from dtc::fdt::checking::checker.


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