guid_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 
00019 #if !defined GUID_LIST_HEADER
00020 #define GUID_LIST_HEADER
00021 
00025 
00026 #include "whiptk/whipcore.h"
00027 #include "whiptk/attribute.h"
00028 
00030 
00032 class WHIPTK_API WT_Guid_List : public WT_Object, public WT_Item_List
00033 {
00034 private:
00035     enum
00036     {
00037         Starting,
00038         Getting_No_Of_Guids,
00039         Getting_Guid,
00040         Getting_Close,
00041         Eating_End_Whitespace
00042     }   m_stage;
00043 
00044 public:
00045 
00047     WT_Guid_List()
00048     { m_stage = Starting;}
00049 
00051     WT_Guid_List(const WT_Guid_List & list)
00052         : WT_Object()
00053         , WT_Item_List() {
00054         m_stage = Starting;
00055         *this = list;
00056     }
00057 
00059     virtual ~WT_Guid_List();
00060 public:
00062 
00063     void add (WT_Guid &item);
00065     WT_Unsigned_Integer16    get_total_opcode_binary_size();
00067     WT_Guid_List const & operator=(WT_Guid_List const & list);
00069 
00071     WT_Result materialize (WT_Opcode const & opcode, WT_File & file);
00072     WT_ID     object_id() const;
00073     WT_Type   object_type() const;
00074     WT_Result process(WT_File & file);
00075     WT_Result serialize(WT_File & file) const;
00076     WT_Result skip_operand (WT_Opcode const & opcode, WT_File & file);
00078 
00080     WT_Boolean operator== (WT_Guid_List const & list) const;
00081 
00083 
00085     static WT_Result default_process(
00086         WT_Guid_List & item, 
00087         WT_File & file 
00088         );
00089 };
00090 
00091 #endif // GUID_LIST_HEADER

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