#include <PDG_AttributeRef.h>
|
enum | Error {
eErrorNone,
eErrorUnspecified,
eErrorNotFound,
eErrorReadOnly,
eErrorInternal,
eErrorAttributesReadOnly,
eErrorTypeConflict,
eErrorTypeUpgrade,
eErrorOverwrite,
eErrorUninitialized,
eErrorInvalidFlag
} |
|
Base class for attribute references
Definition at line 29 of file PDG_AttributeRef.h.
Enumeration of possible errors that could occur when attempting to to construct an attribute reference
Enumerator |
---|
eErrorNone |
No error was specified, i.e. the ref is valid.
|
eErrorUnspecified |
An unspecified error occured - the ref is invalid.
|
eErrorNotFound |
The requested attribute was not found - the ref is invalid.
|
eErrorReadOnly |
The requested attribute was a readonly when attempting to create a RW ref - the ref is invalid
|
eErrorInternal |
The requested attribute is internal, and therefore cannot be removed by user code
|
eErrorAttributesReadOnly |
The entire attribute map is read only.
|
eErrorTypeConflict |
The requested attribute type did not match the attribute - the ref is invalid
|
eErrorTypeUpgrade |
The requested attribute is static and was not upgraded to dynamic.
|
eErrorOverwrite |
The requested attribute already exists, but the API call was instruct to not overwrite existing values
|
eErrorUninitialized |
The ref is uninitialized and needs to be created at a later point.
|
eErrorInvalidFlag |
The attribute doesn't support a flag that was passed to a SetFlag call
|
Definition at line 34 of file PDG_AttributeRef.h.
Writes an attribute error format message to the buffer, based on the supply error, attrib name and optional work item. Returns True if no error is detected, or false if an error occured.
Emits events when the attribute is modified.
Error PDG_AttributeRef::error |
( |
| ) |
const |
|
inline |
bool PDG_AttributeRef::isValid |
( |
| ) |
const |
|
inline |
Returns the name of the attribute referenced by this attrib ref.
Definition at line 105 of file PDG_AttributeRef.h.
PDG_AttributeRef::operator bool |
( |
| ) |
const |
|
inline |
Returns false and Writes an attribute error message into the buffer if an error exists, or returns trues and does not modify the buffer if no error has been recorded.
bool PDG_AttributeRef::validate |
( |
const PDG_Node * |
node, |
|
|
bool |
report_errors = true , |
|
|
bool |
as_warning = false |
|
) |
| const |
Same as above, except the attribute error is reported on the specified node instead of returned as a buffer, if an error has occured. The method still returns true if no error has occured, and false if one has.
The report_errors argument is provided as a convenience, to make it possible to parametrically skip error reporting
Error PDG_AttributeRef::myError |
|
protected |
The documentation for this class was generated from the following file: