XamlMacro_Definition.h

Go to the documentation of this file.
00001 //  Copyright (c) 2006 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 
00021 
00022 #if !defined XAML_MACRO_DEFINITION_HEADER
00023 #define XAML_MACRO_DEFINITION_HEADER
00024 
00025 #include "XAML/XamlCore.h"
00026 
00027 #include "whiptk/macro_definition.h"
00028 #include "XAML/XamlXML.h"
00029 #include "dwfcore/BufferInputStream.h"
00030 #include "dwfcore/BufferOutputStream.h"
00031 
00032 
00033 class XAMLTK_API WT_XAML_Macro_Definition : public WT_Macro_Definition
00034 {
00035         friend class WT_XAML_Class_Factory;
00036         friend class WT_XAML_File;
00037         
00038 protected:
00039 
00041     // Default constructor
00042     WT_XAML_Macro_Definition()
00043         : WT_Macro_Definition (0)
00044     {}
00045 
00046     WT_XAML_Macro_Definition( const WT_XAML_Macro_Definition& rMacro );
00047 
00048     WT_XAML_Macro_Definition( WT_Unsigned_Integer16 index,
00049                          WT_Integer32 scale_units = 1 )
00050          : WT_Macro_Definition(index,scale_units)
00051         {} 
00052 
00053     virtual ~WT_XAML_Macro_Definition()
00054         {}
00055 
00056 public:   
00058     WT_Result       serialize(WT_File & file) const;
00059     WT_Result       serialize_stream(WT_File & file) const;
00061         WT_Result                parseAttributeList(XamlXML::tAttributeMap& rMap, WT_XAML_File& rFile);
00062     WT_Result        parseCData(int nLen,const char* pCData);
00063 
00064 };
00065 
00066 #endif //XAML_MACRO_DEFINITION_HEADER

Generated on Tue Jan 6 22:40:06 2009 for Autodesk DWF Toolkit by  doxygen 1.4.5