WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
WatchFile.h
1#ifndef _WINC_WATCHFILE
2#define _WINC_WATCHFILE
3
4#include <WXP/Date.h>
5#include <WXP/File.h>
6#include <WXP/Filename.h>
7#include <WXP/WatchData.h>
8
9namespace WXP {
10 /*
11 Product description information
12 */
13 class WatchFile {
14 File file;
15 bool opened;
16 Date date; // File date
17 Date pdate; // Product date
18
19 public:
20 WatchFile();
21 WatchFile( const char *filename );
22 WatchFile( Filename &filename );
23 ~WatchFile();
24 int init();
25 int open( const char *filename );
26 int open( Filename &filename );
27 int close();
28 bool isOpen();
29 int setDate( Date &rdate );
30 int read( WatchData &watch );
31 };
32}
33#endif
34
This class stores date and time information.
Definition Date.h:8
This class accesses files.
Definition File.h:15
This class creates filenames.
Definition Filename.h:11
This class reads and decodes watch box data from file.
Definition WatchFile.h:13
int close()
Definition WatchFile.cc:98
int setDate(Date &rdate)
Definition WatchFile.cc:109
int open(const char *filename)
Definition WatchFile.cc:68
WatchFile()
Definition WatchFile.cc:25
~WatchFile()
Definition WatchFile.cc:53
bool isOpen()
Definition WatchFile.cc:91
int init()
Definition WatchFile.cc:60
int read(WatchData &watch)
Definition WatchFile.cc:119
All WXP classes fall under the WXP namespace.
Definition Angle.h:4
This struct stores watch box data.
Definition WatchData.h:8