object_node_list.h

Go to the documentation of this file.
00001 //
00002 //  Copyright (c) 1996-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 
00022 
00023 #if !defined OBJECT_NODE_LIST_HEADER
00024 #define OBJECT_NODE_LIST_HEADER
00025 
00026 #include "whiptk/whipcore.h"
00027 #include "whiptk/attribute.h"
00028 #include "whiptk/list.h"
00029 
00030 // forward class declaration
00031 class WT_File;
00032 class WT_Object_Node;
00033 
00035 class WHIPTK_API WT_Object_Node_List : public WT_Item_List, public WT_Object
00036 {
00037         friend class WT_File;
00038         friend class WT_W2D_Class_Factory;
00039 
00040 protected:
00041 
00043     WT_Object_Node_List ()
00044         : WT_Item_List () { }
00045 
00047     virtual ~WT_Object_Node_List()
00048     {
00049         remove_all();
00050     }
00051 public:
00053     void                   add_object_node (WT_Object_Node const & object_node);
00055     WT_Object_Node *       find_object_node_from_index (WT_Integer32 object_node_num);
00057     WT_Object_Node *       find_object_node_from_name  (WT_String object_node_name);
00058 
00059     //WT_Object virtual methods
00060     WT_Result    materialize(WT_Opcode const & opcode, WT_File & file);
00061     WT_ID        object_id() const;
00062     WT_Type      object_type() const;
00063     WT_Result    process(WT_File & file);
00064     WT_Result    serialize (WT_File & file) const;
00065     WT_Result    skip_operand(WT_Opcode const & opcode, WT_File & file);
00066 
00067 };
00068 
00069 #endif // OBJECT_NODE_LIST_HEADER

Generated on Tue Jan 6 22:41:13 2009 for Autodesk DWF Whip 2D Toolkit by  doxygen 1.4.5