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

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