group_begin.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 GROUP_BEGIN_HEADER
00020 #define GROUP_BEGIN_HEADER
00021 
00025 
00026 #include "whiptk/wtstring.h"
00027 #include "whiptk/whipcore.h"
00028 #include "whiptk/object.h"
00029 
00030 class WT_File;
00031 
00037 
00038 
00043 class WHIPTK_API WT_Group_Begin : public WT_Object
00044 {
00045 private:
00046     WT_String m_group_path;
00047 
00048     enum WT_Materialize_Stage
00049     {
00050         Gathering_Group_Path,
00051         Eating_End_Whitespace
00052     } m_stage;
00053 
00054 public:
00056 
00057     WT_Group_Begin()
00058         : m_stage(Gathering_Group_Path) //Gathering_Group_Name
00059     { }
00060 
00062     WT_Group_Begin(WT_String path_name)
00063         : m_group_path(path_name)
00064         , m_stage(Gathering_Group_Path)
00065     { }
00066         virtual ~WT_Group_Begin()
00067         {}
00068 
00070 
00071     WT_String const & group_path() { return m_group_path; }
00073 
00075     WT_Result        materialize(WT_Opcode const & opcode, WT_File & file);
00076     WT_ID            object_id() const;
00077     WT_Type          object_type() const;
00078     WT_Result        process(WT_File & file);
00079     WT_Result        serialize(WT_File & file) const;
00080     WT_Result        skip_operand(WT_Opcode const & opcode, WT_File & file);
00082 
00084 
00086     static WT_Result default_process(
00087         WT_Group_Begin & item, 
00088         WT_File & file 
00089         );
00090 
00091 };
00092 
00094 
00095 #endif // GROUP_BEGIN_HEADER

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