VTK
dox/GUISupport/QtSQL/vtkQtTimePointUtility.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkQtTimePointUtility.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00015 /*-------------------------------------------------------------------------
00016   Copyright 2008 Sandia Corporation.
00017   Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
00018   the U.S. Government retains certain rights in this software.
00019 -------------------------------------------------------------------------*/
00030 #ifndef __vtkQtTimePointUtility_h
00031 #define __vtkQtTimePointUtility_h
00032 
00033 #include "vtkGUISupportQtSQLModule.h"
00034 #include "vtkObject.h"
00035 #include <QDateTime>
00036 
00037 class VTKGUISUPPORTQTSQL_EXPORT vtkQtTimePointUtility : public vtkObject
00038 {
00039 public:
00040   vtkTypeMacro(vtkQtTimePointUtility,vtkObject);
00041 
00042   static QDateTime TimePointToQDateTime(vtkTypeUInt64 time);
00043   static vtkTypeUInt64 QDateTimeToTimePoint(QDateTime time);
00044   static vtkTypeUInt64 QDateToTimePoint(QDate date);
00045   static vtkTypeUInt64 QTimeToTimePoint(QTime time);
00046 
00047 protected:
00048   vtkQtTimePointUtility() {};
00049   ~vtkQtTimePointUtility() {};
00050 
00051 private:
00052   vtkQtTimePointUtility(const vtkQtTimePointUtility&);  // Not implemented.
00053   void operator=(const vtkQtTimePointUtility&);  // Not implemented.
00054 };
00055 
00056 #endif