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

group_begin.h

00001 //  Copyright (c) 1996-2001 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 GROUP_BEGIN_HEADER
00019 #define GROUP_BEGIN_HEADER
00020 
00021 #include "whiptk/wtstring.h"
00022 #include "whiptk/whipcore.h"
00023 #include "whiptk/object.h"
00024 
00025 class WT_File;
00026 
00032 
00033 
00038 class WHIPTK_API WT_Group_Begin : public WT_Object
00039 {
00040 private:
00041     WT_String m_group_path;
00042 
00043     enum WT_Materialize_Stage
00044     {
00045         Gathering_Group_Path,
00046         Eating_End_Whitespace
00047     } m_stage;
00048 
00049 public:
00051 
00052     WT_Group_Begin()
00053         : m_stage(Gathering_Group_Path) //Gathering_Group_Name
00054     { }
00055 
00057     WT_Group_Begin(WT_String path_name)
00058         : m_group_path(path_name)
00059         , m_stage(Gathering_Group_Path)
00060     { }
00061 
00063 
00064     WT_String const & group_path() { return m_group_path; }
00066 
00068     WT_Result        materialize(WT_Opcode const & opcode, WT_File & file);
00069     WT_ID            object_id() const;
00070     WT_Type          object_type() const;
00071     WT_Result        process(WT_File & file);
00072     WT_Result        serialize(WT_File & file) const;
00073     WT_Result        skip_operand(WT_Opcode const & opcode, WT_File & file);
00075 
00077 
00079     static WT_Result default_process(
00080         WT_Group_Begin & item, 
00081         WT_File & file 
00082         );
00083 
00084 };
00085 
00087 
00088 #endif // GROUP_BEGIN_HEADER

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