moreupdates
[synfig.git] / synfig-core / trunk / src / synfig / valuenode_composite.h
1 /* === S Y N F I G ========================================================= */
2 /*!     \file valuenode_composite.h
3 **      \brief Template Header
4 **
5 **      $Id: valuenode_composite.h,v 1.1.1.1 2005/01/04 01:23:15 darco Exp $
6 **
7 **      \legal
8 **      Copyright (c) 2002 Robert B. Quattlebaum Jr.
9 **
10 **      This software and associated documentation
11 **      are CONFIDENTIAL and PROPRIETARY property of
12 **      the above-mentioned copyright holder.
13 **
14 **      You may not copy, print, publish, or in any
15 **      other way distribute this software without
16 **      a prior written agreement with
17 **      the copyright holder.
18 **      \endlegal
19 */
20 /* ========================================================================= */
21
22 /* === S T A R T =========================================================== */
23
24 #ifndef __SYNFIG_VALUENODE_COMPOSITE_H
25 #define __SYNFIG_VALUENODE_COMPOSITE_H
26
27 /* === H E A D E R S ======================================================= */
28
29 #include "valuenode.h"
30
31 /* === M A C R O S ========================================================= */
32
33 /* === C L A S S E S & S T R U C T S ======================================= */
34
35 namespace synfig {
36
37 class ValueNode_Composite : public LinkableValueNode
38 {
39         ValueNode::RHandle components[6];
40         ValueNode_Composite(const ValueBase &value);
41         
42 public:
43         typedef etl::handle<ValueNode_Composite> Handle;
44         typedef etl::handle<const ValueNode_Composite> ConstHandle;
45
46
47         ~ValueNode_Composite();
48
49         virtual ValueNode::LooseHandle get_link_vfunc(int i)const;
50         virtual int link_count()const;
51         virtual String link_name(int i)const;
52         virtual String link_local_name(int i)const;
53         virtual ValueBase operator()(Time t)const;
54
55
56         virtual String get_name()const;
57         virtual String get_local_name()const;
58         virtual int get_link_index_from_name(const String &name)const;
59         
60 protected:
61         virtual bool set_link_vfunc(int i,ValueNode::Handle x);
62         
63         LinkableValueNode* create_new()const;
64
65 public:
66         using synfig::LinkableValueNode::set_link_vfunc;
67         using synfig::LinkableValueNode::get_link_vfunc;
68         static bool check_type(ValueBase::Type type);
69         static ValueNode_Composite* create(const ValueBase &x);
70 }; // END of class ValueNode_Composite
71
72 }; // END of namespace synfig
73
74 /* === E N D =============================================================== */
75
76 #endif