VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
rwClockTime.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2013 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
8 
9 #pragma once
10 
11 #include "vrfutil/readerWriter.h"
12 
16 
17 #include "vrfutil/vrfutilDefines.h"
19 {
20 public:
21 
23  DtRwClockTime();
24 
26  DtRwClockTime(const DtString& name,
27  DtReaderWriterRegistry* const parentRegistry = NULL);
28 
29  DtRwClockTime(const DtSymbolString& name,
30  DtReaderWriterRegistry* const parentRegistry = NULL);
31 
33  DtRwClockTime(const DtString& name, int days, int hours, int minutes,
34  double seconds, DtReaderWriterRegistry* const parentRegistry = NULL);
35 
36  DtRwClockTime(const DtSymbolString& name, int days, int hours, int minutes,
37  double seconds, DtReaderWriterRegistry* const parentRegistry = NULL);
38 
40  virtual ~DtRwClockTime();
41 
43  DtRwClockTime(const DtRwClockTime& orig);
44 
47 
49  virtual void setDays(int days);
50  virtual int days() const;
51 
53  virtual void setHours(int hours);
54  virtual int hours() const;
55 
57  virtual void setMinutes(int minutes);
58  virtual int minutes() const;
59 
61  virtual void setSeconds(double seconds);
62  virtual double seconds() const;
63 
66  virtual double timeInSeconds() const;
67 
68  virtual void putData(std::string& fp, int indentLevel = 0);
69  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
70  const DtVariableBindingsList& variableBindings);
71 
75  virtual const char* readerWriterType() const;
76 
77  bool operator==(const DtRwClockTime&) const;
78 
79 protected:
80 
81  int myDays;
82  int myHours;
83  int myMinutes;
84  double mySeconds;
85 };

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)