stlab.adobe.com Adobe Systems Incorporated

#include <adobe/eve_parser.hpp>

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 &parameters, 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

§ add_cell_proc_t

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.

§ add_interface_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

Definition at line 205 of file eve_parser.hpp.

§ add_relation_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

Definition at line 196 of file eve_parser.hpp.

§ add_view_proc_t

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
parentThe parent view's position_t of the view currently being created.
parse_locationThe line position of the view currently being created.
nameThe name of the view currently being created.
parametersAn expression which will evaluate to a dictionary_t containing the view attributes.
briefThe contents of the trailing comment (if any) after this view class declaration
detailedThe 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.

§ finalize_sheet_proc_t

Definition at line 207 of file eve_parser.hpp.

§ position_t

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

§ cell_type_t

Enumerator
constant_k 
logic_k 
interface_k 

Definition at line 159 of file eve_parser.hpp.

Member Data Documentation

§ add_cell_proc_m

add_cell_proc_t add_cell_proc_m

Definition at line 211 of file eve_parser.hpp.

§ add_interface_proc_m

add_interface_proc_t add_interface_proc_m

Definition at line 214 of file eve_parser.hpp.

§ add_relation_proc_m

add_relation_proc_t add_relation_proc_m

Definition at line 213 of file eve_parser.hpp.

§ add_view_proc_m

add_view_proc_t add_view_proc_m

Definition at line 210 of file eve_parser.hpp.

§ finalize_sheet_proc_m

finalize_sheet_proc_t finalize_sheet_proc_m

Definition at line 212 of file eve_parser.hpp.

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google