OWLNext
7.0
Borland's Object Windows Library for the modern age
Toggle main menu visibility
Loading...
Searching...
No Matches
timep.cpp
Go to the documentation of this file.
1
//----------------------------------------------------------------------------
2
// ObjectWindows
3
// Copyright (c) 1993, 1996 by Borland International, All Rights Reserved
4
//
5
/// \file
6
/// TTime class persistent streaming implementation
7
//----------------------------------------------------------------------------
8
#include <
owl/pch.h
>
9
10
#include <
owl/time.h
>
11
#include <
owl/objstrm.h
>
12
#include <
owl/wsyscls.h
>
13
#include <
owl/private/strmdefs.h
>
14
15
namespace
owl
{
16
17
_OWLCFUNC
(
opstream
&)
operator <<
(
opstream
& os,
18
const
TTime
& d )
19
{
20
return
os << d.Sec;
21
}
22
23
_OWLCFUNC
(
ipstream
&)
operator >>
(
ipstream
& is,
24
TTime
& d )
25
{
26
return
is >> d.Sec;
27
}
28
29
//
30
_OWLCFUNC
(
opstream
&)
operator <<
(
opstream
& s,
const
TFileTime
& d ){
31
s << d.dwLowDateTime << d.dwHighDateTime;
32
return
s;
33
}
34
35
//
36
_OWLCFUNC
(
ipstream
&)
operator >>
(
ipstream
& s,
TFileTime
& d )
37
{
38
s >> d.dwLowDateTime >> d.dwHighDateTime;
39
return
s;
40
}
41
42
}
// OWL namespace
43
/* ========================================================================== */
44
45
owl::TFileTime::TFileTime
TFileTime()
Constructs a empty TFileTime object.
Definition
wsyscls.h:365
owl::TTime::TTime
TTime()
Construct TTime with current time (seconds since Jan 1, 1901).
Definition
time.cpp:137
owl::ipstream
ipstream, a specialized input stream derivative of pstream, is the base class for reading (extracting...
Definition
objstrm.h:391
owl::opstream
Base class for writing streamable objects.
Definition
objstrm.h:480
pch.h
owl
Object Windows Library (OWLNext Core).
Definition
animctrl.h:22
owl::operator<<
owl::opstream & operator<<(owl::opstream &os, const TColor &c)
Insert the color value into a persistent output stream.
Definition
color.h:498
owl::operator>>
owl::ipstream & operator>>(owl::ipstream &is, TColor &c)
Extract the color value from a persistent input stream.
Definition
color.h:489
objstrm.h
_OWLCFUNC
#define _OWLCFUNC(p)
Definition
defs.h:342
strmdefs.h
time.h
wsyscls.h
Classes for window system structure and type encapsulation.
source
owlcore
timep.cpp
Generated by
1.18.0