Introduced new cdl-friendly Standard_Time alias to time_t type.
fields
thefilename : HAsciiString from TCollection;
- thetime : Integer from Standard ;
- thesequenceoffuzzydefinitions : SequenceOfFuzzyDefinitions from Dynamic ;
+ thetime : Time from Standard;
+ thesequenceoffuzzydefinitions : SequenceOfFuzzyDefinitions from Dynamic;
end FuzzyDefinitionsDictionary;
fields
thefilename : HAsciiString from TCollection;
- thetime : Integer from Standard ;
- thesequenceofmethoddefinitions : SequenceOfMethodDefinitions from Dynamic ;
+ thetime : Time from Standard;
+ thesequenceofmethoddefinitions : SequenceOfMethodDefinitions from Dynamic;
end MethodDefinitionsDictionary;
Transient
uses
- OStream from Standard,
+ OStream from Standard,
HAsciiString from TCollection,
MaterialsSequence from Materials,
Material from Materials
fields
thefilename : HAsciiString from TCollection;
- thetime : Integer from Standard;
+ thetime : Time from Standard;
thematerialssequence : MaterialsSequence from Materials;
end MaterialsDictionary;
Standard_ShortReal.hxx
Standard_Stream.hxx
Standard_String.hxx
+Standard_Time.cxx
+Standard_Time.hxx
Standard_Transient.hxx
Standard_Transient_proto.hxx
Standard_TypeDef.hxx
class AncestorIterator;
deferred class Storable ;
- primitive Boolean inherits Storable;
- primitive Character inherits Storable;
+ primitive Boolean inherits Storable;
+ primitive Character inherits Storable;
primitive ExtCharacter inherits Storable;
primitive Integer inherits Storable;
- primitive Byte inherits Storable;
+ primitive Byte inherits Storable;
primitive Real inherits Storable;
primitive ShortReal inherits Storable;
-
- primitive OId inherits Storable;
+ primitive Time inherits Storable;
+ primitive OId inherits Storable;
deferred class Persistent ; -- inherits Storable
class GUID; -- inherits Storable
--- /dev/null
+// Copyright (c) 2013 OPEN CASCADE SAS
+//
+// The content of this file is subject to the Open CASCADE Technology Public
+// License Version 6.5 (the "License"). You may not use the content of this file
+// except in compliance with the License. Please obtain a copy of the License
+// at http://www.opencascade.org and read it completely before using this file.
+//
+// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
+// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
+//
+// The Original Code and all software distributed under the License is
+// distributed on an "AS IS" basis, without warranty of any kind, and the
+// Initial Developer hereby disclaims all such warranties, including without
+// limitation, any warranties of merchantability, fitness for a particular
+// purpose or non-infringement. Please see the License for the specific terms
+// and conditions governing the rights and limitations under the License.
+
+#include <Standard_Time.hxx>
+#include <Standard_ConstructionError.hxx>
+
+const Handle_Standard_Type& Standard_Time_Type_()
+{
+ static Handle_Standard_Type _aType =
+ new Standard_Type ("Standard_Time", sizeof(Standard_Time), 0, NULL);
+
+ return _aType;
+}
--- /dev/null
+// Copyright (c) 2013 OPEN CASCADE SAS
+//
+// The content of this file is subject to the Open CASCADE Technology Public
+// License Version 6.5 (the "License"). You may not use the content of this file
+// except in compliance with the License. Please obtain a copy of the License
+// at http://www.opencascade.org and read it completely before using this file.
+//
+// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
+// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
+//
+// The Original Code and all software distributed under the License is
+// distributed on an "AS IS" basis, without warranty of any kind, and the
+// Initial Developer hereby disclaims all such warranties, including without
+// limitation, any warranties of merchantability, fitness for a particular
+// purpose or non-infringement. Please see the License for the specific terms
+// and conditions governing the rights and limitations under the License.
+
+#ifndef _Standard_Time_HeaderFile
+#define _Standard_Time_HeaderFile
+
+#ifndef _Standard_TypeDef_HeaderFile
+#include <Standard_TypeDef.hxx>
+#endif
+
+class Handle_Standard_Type;
+
+__Standard_API const Handle_Standard_Type& Standard_Time_Type_();
+
+// ===============================================
+// Methods from Standard_Entity class which are redefined:
+// - IsEqual
+// ===============================================
+
+// ------------------------------------------------------------------
+// IsEqual : Returns Standard_True if two time values are equal
+// ------------------------------------------------------------------
+inline Standard_Boolean IsEqual (const Standard_Time theOne,
+ const Standard_Time theTwo)
+{
+ return theOne == theTwo;
+}
+
+#endif
#define _Standard_TypeDef_HeaderFile
#include <stddef.h>
+#include <ctime>
#define Standard_False (Standard_Boolean)0
#define Standard_True (Standard_Boolean)1
typedef const char* Standard_CString;
typedef const short* Standard_ExtString;
-#endif
+typedef std::time_t Standard_Time;
+#endif
fields
thefilename : HAsciiString from TCollection;
- thetime : Integer;
+ thetime : Time from Standard;
thesequenceoftokens : TokensSequence from Units;
end Lexicon;
fields
thefilename : HAsciiString from TCollection;
- thetime : Integer;
+ thetime : Time from Standard;
thequantitiessequence : QuantitiesSequence from Units;
end UnitsDictionary;
thefilename = new TCollection_HAsciiString(afilename);
struct stat buf;
- if(!stat(afilename,&buf)) thetime = (Standard_Integer)buf.st_ctime;
+ if(!stat(afilename,&buf)) thetime = buf.st_ctime;
thequantitiessequence = new Units_QuantitiesSequence();
fields
thefilename : HAsciiString from TCollection;
- thetime : Integer;
+ thetime : Time from Standard;
end UnitsLexicon;