BSDL Device Tree Compiler
|
Public Types | |
typedef std::vector < property_value >::iterator | value_iterator |
Public Member Functions | |
property (string k, string l=string()) | |
property (property &p) | |
value_iterator | begin () |
value_iterator | end () |
void | add_value (property_value v) |
string | get_key () |
void | write (dtb::output_writer &writer, string_table &strings) |
void | write_dts (FILE *file, int indent) |
Static Public Member Functions | |
static property * | parse_dtb (input_buffer &structs, input_buffer &strings) |
static property * | parse (input_buffer &input, string key, string label=string()) |
A value encapsulating a single property. This contains a key, optionally a label, and optionally one or more values.
typedef std::vector<property_value>::iterator dtc::fdt::property::value_iterator |
Iterator type used for accessing the values of a property.
|
inline |
Copy constructor.
|
inline |
Adds a new value to an existing property.
|
inline |
Returns an iterator referring to the first value in this property.
|
inline |
Returns an iterator referring to the last value in this property.
|
inline |
Returns the key for this property.
|
inlinestatic |
Factory method for constructing a new property. Attempts to parse a property from the input, and returns it on success. On any parse error, this will return 0.
|
inlinestatic |
Factory method for constructing a new property. Attempts to parse a property from the input, and returns it on success. On any parse error, this will return 0.
|
inline |
Writes the property to the specified writer. The property name is a reference into the strings table.
|
inline |
Writes in DTS format to the specified file, at the given indent level. This will begin the line with the number of tabs specified as the indent level and then write the property in the most applicable way that it can determine.