XamlObjectNode.h

00001 //
00002 //  Copyright (c) 2006 by Autodesk, Inc.
00003 //
00004 //  By using this code, you are agreeing to the terms and conditions of
00005 //  the License Agreement included in the documentation for this code.
00006 //
00007 //  AUTODESK MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AS TO THE CORRECTNESS
00008 //  OF THIS CODE OR ANY DERIVATIVE WORKS WHICH INCORPORATE IT. AUTODESK
00009 //  PROVIDES THE CODE ON AN "AS-IS" BASIS AND EXPLICITLY DISCLAIMS ANY
00010 //  LIABILITY, INCLUDING CONSEQUENTIAL AND INCIDENTAL DAMAGES FOR ERRORS,
00011 //  OMISSIONS, AND OTHER PROBLEMS IN THE CODE.
00012 //
00013 //  Use, duplication, or disclosure by the U.S. Government is subject to
00014 //  restrictions set forth in FAR 52.227-19 (Commercial Computer Software
00015 //  Restricted Rights) and DFAR 252.227-7013(c)(1)(ii) (Rights in Technical
00016 //  Data and Computer Software), as applicable.
00017 //
00018 #if !defined XAML_OBJECT_NODE_HEADER
00019 #define XAML_OBJECT_NODE_HEADER
00020 
00024 
00025 #include "whiptk/object_node.h"
00026 
00027 
00032 
00033 
00036 class WHIPTK_API WT_XAML_Object_Node : public WT_Object_Node
00037 {
00038         friend class WT_XAML_Class_Factory;
00039         friend class WT_XAML_Rendition;
00040 
00041 protected:
00042 
00044 
00045     WT_XAML_Object_Node()
00046         : WT_Object_Node()        
00047     { }
00048 
00050     WT_XAML_Object_Node(
00051         WT_File &file, 
00052         WT_Integer32 object_node_num, 
00053         char const * object_node_name=WD_Null 
00054         )
00055                 : WT_Object_Node(file,object_node_num,object_node_name)
00056         {}
00057 
00059     WT_XAML_Object_Node(
00060         WT_File &file, 
00061         WT_Integer32 object_node_num, 
00062         WT_Unsigned_Integer16 const * object_node_name 
00063         )
00064                 : WT_Object_Node(file,object_node_num,object_node_name)
00065         {}
00067     WT_XAML_Object_Node (WT_XAML_Object_Node const & object_node)
00068                 : WT_Object_Node(static_cast<WT_Object_Node const &>(object_node))
00069         {}
00070 
00071         virtual ~WT_XAML_Object_Node()
00072         {}
00074 public:
00075 
00077     WT_XAML_Object_Node const & operator=(WT_XAML_Object_Node const & object_node)
00078         {
00079                 WT_Object_Node::operator = (object_node);
00080                 return *this;
00081         }
00082 
00084     WT_Result        materialize(WT_Opcode const & /*opcode*/, WT_File & /*file*/)
00085         {
00086                 return WT_Result::Success;
00087         }
00088     WT_Result        serialize (WT_File & file) const;
00089 };
00091 
00092 #endif //XAML_OBJECT_NODE_HEADER

Generated on Tue Jan 6 22:40:06 2009 for Autodesk DWF Toolkit by  doxygen 1.4.5