Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | Related Pages | Examples

object_node_list.h

00001 //  Copyright (c) 2002 by Autodesk, Inc.
00002 //
00003 //  By using this code, you are agreeing to the terms and conditions of
00004 //  the License Agreement included in the documentation for this code.
00005 //
00006 //  AUTODESK MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AS TO THE CORRECTNESS
00007 //  OF THIS CODE OR ANY DERIVATIVE WORKS WHICH INCORPORATE IT. AUTODESK
00008 //  PROVIDES THE CODE ON AN "AS-IS" BASIS AND EXPLICITLY DISCLAIMS ANY
00009 //  LIABILITY, INCLUDING CONSEQUENTIAL AND INCIDENTAL DAMAGES FOR ERRORS,
00010 //  OMISSIONS, AND OTHER PROBLEMS IN THE CODE.
00011 //
00012 //  Use, duplication, or disclosure by the U.S. Government is subject to
00013 //  restrictions set forth in FAR 52.227-19 (Commercial Computer Software
00014 //  Restricted Rights) and DFAR 252.227-7013(c)(1)(ii) (Rights in Technical
00015 //  Data and Computer Software), as applicable.
00016 //
00017 
00018 #if !defined OBJECT_NODE_LIST_HEADER
00019 #define OBJECT_NODE_LIST_HEADER
00020 
00021 #include "whiptk/whipcore.h"
00022 #include "whiptk/attribute.h"
00023 #include "whiptk/list.h"
00024 
00025 // forward class declaration
00026 class WT_File;
00027 class WT_Object_Node;
00028 
00030 class WHIPTK_API WT_Object_Node_List : public WT_Item_List, public WT_Object
00031 {
00032 public:
00033 
00035     WT_Object_Node_List ()
00036         : WT_Item_List () { }
00037 
00039     ~WT_Object_Node_List()
00040     {
00041         remove_all();
00042     }
00043 
00045     void                   add_object_node (WT_Object_Node const & object_node);
00047     WT_Object_Node *       find_object_node_from_index (WT_Integer32 object_node_num);
00049     WT_Object_Node *       find_object_node_from_name  (WT_String object_node_name);
00050 
00051     //WT_Object virtual methods
00052     WT_Result    materialize(WT_Opcode const & opcode, WT_File & file);
00053     WT_ID        object_id() const;
00054     WT_Type      object_type() const;
00055     WT_Result    process(WT_File & file);
00056     WT_Result    serialize (WT_File & file) const;
00057     WT_Result    skip_operand(WT_Opcode const & opcode, WT_File & file);
00058 
00059 };
00060 
00061 #endif // OBJECT_NODE_LIST_HEADER

Generated on Tue May 17 12:07:44 2005 for Autodesk DWF Whip 2D Toolkit by  doxygen 1.4.1