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

filetime.h

00001 //  Copyright (c) 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 FILETIME_HEADER
00019 #define FILETIME_HEADER
00020 
00021 #include "whiptk/whipcore.h"
00022 #include "whiptk/object.h"
00023 
00024 class WT_File;
00025 
00027 
00029 class WHIPTK_API WT_FileTime : public WT_Object
00030 {
00031 
00032 private:
00033     WT_Unsigned_Integer32        m_low_date_time;
00034     WT_Unsigned_Integer32        m_high_date_time;
00035 
00036     enum {
00037         Starting,
00038         Getting_Low_Date_Time,
00039         Getting_High_Date_Time,
00040         Getting_Close
00041     }   m_stage;
00042 
00043 public:
00044 
00045     // Constructors, Destructors
00046 
00047     WT_FileTime()
00048         : m_low_date_time(0) , m_high_date_time(0), m_stage(Starting)
00049     { }
00050 
00051     WT_FileTime(const WT_Unsigned_Integer32 & low_date_time, const WT_Unsigned_Integer32 & high_date_time)
00052         : m_low_date_time(low_date_time) , m_high_date_time(high_date_time), m_stage(Starting)
00053     {
00054 
00055     }
00056 
00057     ~WT_FileTime()
00058     { }
00059 
00060     // Mandatory WT_Object Virtual methods
00061 
00062     WT_ID            object_id() const;
00063     WT_Type          object_type() const;
00064     WT_Result        serialize (WT_File & file) const;
00065     WT_Result        materialize(WT_Opcode const & opcode, WT_File & file);
00066     WT_Result        skip_operand(WT_Opcode const & opcode, WT_File & file);
00067     WT_Result        process(WT_File & file);
00068 
00069     static WT_Result default_process(WT_FileTime & item, WT_File & file);
00070 
00071 
00072     WT_Unsigned_Integer32 const &    low_date_time() const
00073     {    return m_low_date_time;    }
00074     WT_Unsigned_Integer32 const &    high_date_time() const
00075     {    return m_high_date_time;    }
00076     void set_low_date_time(WT_Unsigned_Integer32 const low_date_time)
00077     {    m_low_date_time = low_date_time;    }
00078     void set_high_date_time(WT_Unsigned_Integer32 const high_date_time)
00079     {    m_high_date_time = high_date_time;    }
00080 
00081     WT_Boolean    operator!= (WT_FileTime const & time) const;
00082     WT_Boolean    operator== (WT_FileTime const & time) const;
00083 };
00084 
00085 #endif // FILETIME_HEADER

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