1 //---------------------------------------------------------------
2 //
3 // For conditions of distribution and use, see copyright notice
4 // in Flashpix.h
5 //
6 // Copyright (c) 1999 Digital Imaging Group, Inc.
7 //
8 // File: entry.cxx
9 //
10 // Contents: Entry implementations
11 //
12 //---------------------------------------------------------------
13
14 #include "dfhead.cxx"
15
16
17 //+--------------------------------------------------------------
18 //
19 // Member: PEntry::CopyTimesFrom, public
20 //
21 // Synopsis: Copies one entries times to another
22 //
23 // Arguments: [penFrom] - From
24 //
25 // Returns: Appropriate status code
26 //
27 //---------------------------------------------------------------
28
CopyTimesFrom(PEntry * penFrom)29 SCODE PEntry::CopyTimesFrom(PEntry *penFrom)
30 {
31 SCODE sc;
32 TIME_T tm;
33
34 olDebugOut((DEB_ITRACE, "In PEntry::CopyTimesFrom(%p)\n",
35 penFrom));
36 olChk(penFrom->GetTime(WT_CREATION, &tm));
37 olChk(SetTime(WT_CREATION, tm));
38 olChk(penFrom->GetTime(WT_MODIFICATION, &tm));
39 olChk(SetTime(WT_MODIFICATION, tm));
40 olChk(penFrom->GetTime(WT_ACCESS, &tm));
41 olChk(SetTime(WT_ACCESS, tm));
42 olDebugOut((DEB_ITRACE, "Out PEntry::CopyTimesFrom\n"));
43 // Fall through
44 EH_Err:
45 return sc;
46 }
47