versadac  1
versadac - Scalable Recorder Firmware
am_dateformatter.h
1 /*****************************************************************************
2 FILE : am_dateformatter.h
3 VERSION : $Id: am_dateformatter.h 4938 2006-10-10 14:20:18Z martinto $
4 AUTHOR : Sandra Herring
5 SYSTEM : GNU C++ for Power PC
6 DESCRIPTION : Utilities for converting dates to text
7 *****************************************************************************/
8 
9 #if !defined(__AM_DATEFORMATTER_H)
10 #define __AM_DATEFORMATTER_H
11 
12 extern "C"
13 {
14 #ifndef __INCtimeh
15 #include <time.h>
16 #endif
17 }
18 
20 {
21  public :
22 
23 /*------------------------------------------------------------------------------
24 FUNCTION : AM_DateFormatter constructor
25 ARGUMENTS : None.
26 ------------------------------------------------------------------------------*/
28 
29 /*------------------------------------------------------------------------------
30 FUNCTION : AM_DateFormatter destructor
31 ------------------------------------------------------------------------------*/
33 
34 /*------------------------------------------------------------------------------
35 FUNCTION : AM_DateFormatter format
36 DESCRIPTION : Method to generate date text.
37 ARGUMENTS : Date to convert.
38 RETURN : Date text.
39 NOTES : Sends date to Java interface for formatting, so
40  is subject to Java workload.
41 ------------------------------------------------------------------------------*/
42  const char * format( const struct tm & dateStruct );
43 
44  private :
45  char m_DateStr[21]; // last generated text
46  struct tm m_Date; // last converted date
47 
48 }; // class AM_DateFormatter
49 
50 
51 // inline services for class AM_DateFormatter
52 
53 /*------------------------------------------------------------------------------
54 FUNCTION : AM_DateFormatter destructor
55 ------------------------------------------------------------------------------*/
56 inline AM_DateFormatter::~AM_DateFormatter()
57 {
58 }
59 
60 #endif
61 
Definition: am_dateformatter.h:19