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

attribute.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 ATTRIBUTE_HEADER
00019 #define ATTRIBUTE_HEADER
00020 
00021 #include "whiptk/whipcore.h"
00022 #include "whiptk/object.h"
00023 
00024 class WT_File;
00025 
00027 
00035 class WHIPTK_API WT_Attribute : public WT_Object
00036 {
00037 public:
00039     WT_Attribute ()
00040     { }
00041 
00043     virtual ~WT_Attribute ()
00044     { }
00045 
00047     virtual WT_Type    object_type() const;
00048 
00050 
00053     virtual WT_Result        serialize (WT_File & file) const = 0;
00054 
00056 
00061     virtual WT_Result    sync(
00062         WT_File & file 
00063         ) const = 0;
00064 
00066     virtual WT_Boolean operator==(WT_Attribute const & attrib) const = 0;
00067 
00069     WT_Boolean operator!=(WT_Attribute const & attrib) const
00070     {
00071         return !(*this == attrib);
00072     }
00073 };
00074 
00075 #endif // ATTRIBUTE_HEADER

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