eve_callback_suite_t Struct Reference |
Classes | |
struct | relation_t |
Public Types | |
typedef boost::function< void(cell_type_t type, name_t name, const line_position_t &position, const array_t &initializer, const string_t &brief, const string_t &detailed)> | add_cell_proc_t |
typedef boost::function< void(name_t cell_name, bool linked, const line_position_t &position1, const array_t &initializer, const line_position_t &position2, const array_t &expression, const string_t &brief, const string_t &detailed)> | add_interface_proc_t |
typedef boost::function< void(const line_position_t &position, const array_t &conditional, const relation_t *first, const relation_t *last, const string_t &brief, const string_t &detailed) | add_relation_proc_t ) |
typedef boost::function < position_t(const position_t &parent, const line_position_t &parse_location, name_t name, const array_t ¶meters, const string_t &brief, const string_t &detailed)> | add_view_proc_t |
enum | cell_type_t { constant_k, logic_k, interface_k } |
typedef boost::function< void()> | finalize_sheet_proc_t |
typedef boost::any | position_t |
Public Attributes | |
add_cell_proc_t | add_cell_proc_m |
add_interface_proc_t | add_interface_proc_m |
add_relation_proc_t | add_relation_proc_m |
add_view_proc_t | add_view_proc_m |
finalize_sheet_proc_t | finalize_sheet_proc_m |
Detailed Description
The eve_callback_suit_t specifies the client interface to the layout parser. Two callbacks are provided, one cells (typically added to an adobe::basic_sheet_t) and one for view elements.
Definition at line 157 of file eve_parser.hpp.
Member Typedef Documentation
typedef boost::function<void ( cell_type_t type, name_t name, const line_position_t& position, const array_t& initializer, const string_t& brief, const string_t& detailed)> add_cell_proc_t |
Definition at line 189 of file eve_parser.hpp.
typedef boost::function<void ( name_t cell_name, bool linked, const line_position_t& position1, const array_t& initializer, const line_position_t& position2, const array_t& expression, const string_t& brief, const string_t& detailed)> add_interface_proc_t |
Definition at line 205 of file eve_parser.hpp.
typedef boost::function<void ( const line_position_t& position, const array_t& conditional, const relation_t* first, const relation_t* last, const string_t& brief, const string_t& detailed) add_relation_proc_t) |
Definition at line 196 of file eve_parser.hpp.
Client-defined callback function used by the layout library parser to communicate with the client code. The layout library parser will discover view class declarations and will notify this callback of those declarations.
- Parameters:
-
parent The parent view's position_t of the view currently being created. parse_location The line position of the view currently being created. name The name of the view currently being created. parameters An expression which will evaluate to a dictionary_t containing the view attributes. brief The contents of the trailing comment (if any) after this view class declaration detailed The contents of the lead comment (if any) before this view class declaration
- Returns:
- The client callback should return an adobe::eve::position_t, which is a user-defined type that will be propagated to any immediate children of this view class declaration (if any).
Definition at line 182 of file eve_parser.hpp.
typedef boost::function<void()> finalize_sheet_proc_t |
Definition at line 207 of file eve_parser.hpp.
The position_t can hold only copyable type. It is passed as a parameter and returned from the add_view_proc_t to allow the client access to the parent of the node being created.
Definition at line 175 of file eve_parser.hpp.
Member Enumeration Documentation
enum cell_type_t |
Definition at line 159 of file eve_parser.hpp.
Member Data Documentation
Definition at line 211 of file eve_parser.hpp.
Definition at line 214 of file eve_parser.hpp.
Definition at line 213 of file eve_parser.hpp.
Definition at line 210 of file eve_parser.hpp.
Definition at line 212 of file eve_parser.hpp.