Adobe Systems Incorporated

sequence_view_demultiplexer_t Struct Reference

#include <sequence_mvc_muldex.hpp>

List of all members.

Public Types

typedef dictionary_t model_type

Public Member Functions

void display (const model_type &value)
template<typename T >
 sequence_view_demultiplexer_t (T &sequence_view)

Detailed Description

property_model -> **sequence_view_demultiplexer_t** -> my_sequence_view

This structure is the glue between the property model and the client's sequence view. It will receive commands from the sequence model through the property model cell in the form of dictionaries, sent one at a time. The dictionaries are then farmed out (demultiplexed, hence the name) to the various sequence view APIs as provided by the client's implementation. The client actually using this piece of code really shouldn't know (or care) that this is under the hood - it is created by the helper routines below and bound to the assemblage, and then it should silently do its job.

Definition at line 346 of file sequence_mvc_muldex.hpp.

Member Typedef Documentation

Definition at line 348 of file sequence_mvc_muldex.hpp.

Constructor & Destructor Documentation

sequence_view_demultiplexer_t ( T &  sequence_view ) [explicit]

This constructor will take in anything that models the SequenceView concept and establishes a function pack set for the various sequence view routines. The routines will be accessed later as the display routine below receives updates from the property model, and the commands are farmed out to the relevant APIs.

For some reason adobe::function_traits isn't happy with whatever structure comes out of a boost::bind call, otherwise they would be inline in the register_function routines. As it is they are wrapped in a boost::function and passed, which is a viable alternative.

Definition at line 359 of file sequence_mvc_muldex.hpp.

Member Function Documentation

void display ( const model_type value )

display here models the requirements of the property model View concept, takes in an adobe::dictionary which is a wrapped set of command parameters (one of which is the name of the command itself). The command is immediately sent off to the function pack, which will tease out the necessary bits, align parameters to their specified locations, and fire off the underlying APIs to the attached sequence view.

Definition at line 402 of file sequence_mvc_muldex.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