BSDL Device Tree Compiler
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Public Attributes | List of all members
dtc::fdt::checking::property_size_checker Struct Reference
Inheritance diagram for dtc::fdt::checking::property_size_checker:
dtc::fdt::checking::property_checker dtc::fdt::checking::checker

Public Member Functions

 property_size_checker (const char *name, string property_name, uint32_t bytes)
 
virtual bool check (device_tree *tree, node *n, property *p)
 
- Public Member Functions inherited from dtc::fdt::checking::property_checker
virtual bool check_property (device_tree *tree, node *n, property *p)
 
 property_checker (const char *name, string property_name)
 
- 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)
 

Public Attributes

uint32_t size
 

Additional Inherited Members

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

Detailed Description

Check that a property has the correct size.

Constructor & Destructor Documentation

dtc::fdt::checking::property_size_checker::property_size_checker ( const char *  name,
string  property_name,
uint32_t  bytes 
)
inline

Constructor, takes the name of the checker, the name of the property to check, and its expected size as arguments.

Member Function Documentation

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

Check, validates that the property has the correct size.

Implements dtc::fdt::checking::property_checker.

Member Data Documentation

uint32_t dtc::fdt::checking::property_size_checker::size

The expected size of the property.


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