UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
SerialFile.hpp
Go to the documentation of this file.
1 /* SerialFile.hpp */
2 /* $Id: SerialFile.hpp,v 1.1 2004/06/04 12:55:46 vlad Exp $ */
3 #ifndef __SerialFile_hpp
4 #define __SerialFile_hpp
5 
12 #include <mix/Serial.hpp>
13 
14 
16 #define ByteOrderSignature 0x1234
17 
24 {
25 public:
26 
28  InputFileStream (int fildes);
29 
32  void get_arch_signature ();
33 
36  virtual ByteOrder arch () const;
37 
38 protected:
39 
42  virtual void get_data (size_t nbytes, void* dst);
43 
45  ByteOrder byte_order;
46 
48  int fd;
49 
51  int offset;
52 
53 };
54 
55 
56 
63 {
64 public:
65 
67  OutputFileStream (int fildes, ByteOrder arch);
68 
71  void put_arch_signature ();
72 
73 protected:
74 
77  virtual void put_data (size_t nbytes, const void* src);
78 
80  int fd;
81 
83  int offset;
84 
85 };
86 
87 
88 
89 #endif /* SerialFile.hpp */
OutputFileStream(int fildes, ByteOrder arch)
Definition: Serial.hpp:22
void get_arch_signature()
int offset
Definition: SerialFile.hpp:83
virtual void put_data(size_t nbytes, const void *src)
virtual ByteOrder arch() const
Definition: SerialFile.hpp:62
virtual void get_data(size_t nbytes, void *dst)
ByteOrder byte_order
Definition: SerialFile.hpp:45
int fd
Definition: SerialFile.hpp:48
Definition: Serial.hpp:69
int fd
Definition: SerialFile.hpp:80
ByteOrder arch() const
Definition: Serial.hpp:98
void put_arch_signature()
InputFileStream(int fildes)
Definition: SerialFile.hpp:23
int offset
Definition: SerialFile.hpp:51