File.hpp
Go to the documentation of this file.
1 // Copyright (c) 2013 by Wayne C. Gramlich. All rights reserved.
2 
3 #if !defined(FILE_H_INCLUDED)
4 #define FILE_H_INCLUDED 1
5 
6 #include <stdio.h>
7 #include <stdarg.h>
8 
9 #include "String.hpp"
10 
12 typedef FILE *File;
13 
14 // External declarations:
15 extern unsigned int File__byte_read(File file);
16 extern void File__byte_write(File file, unsigned int byte);
17 extern int File__character_read(File in_file);
18 extern void File__close(File file);
19 extern double File__double_attribute_read(
20  File in_file, String_Const attribute_name);
21 extern float File__float_attribute_read(
22  File in_file, String_Const attribute_name);
23 extern void File__flush(File file);
24 extern void File__format(File file, String_Const format, ...);
26  File in_file, String_Const attribute_name);
27 extern unsigned int File__little_endian_short_read(File);
28 extern void File__little_endian_short_write(File, unsigned int xshort);
29 extern File File__open(String_Const file_name, String_Const flags);
30 extern void File__string_match(File in_file, String_Const pattern);
31 extern void File__tag_match(File in_file, String_Const tag_name);
32 
33 #endif // !defined(FILE_H_INCLUDED)
void File__flush(File file)
Flushes file content out of internal buffers.
Definition: File.cpp:166
void File__close(File file)
Closes file.
Definition: File.cpp:50
FILE * File
FILE is a file I/O object.
Definition: File.hpp:12
int File__integer_attribute_read(File in_file, String_Const attribute_name)
Reads in an XML attribute with a integer value.
Definition: File.cpp:183
unsigned int File__byte_read(File file)
Read a byte from file.
Definition: File.cpp:17
int File__character_read(File in_file)
Return the next character read from in_file.
Definition: File.cpp:41
void File__format(File file, String_Const format,...)
will write format out to file with all patterns that start with "%" replaced by formatted versions of...
Definition: File.cpp:107
double File__double_attribute_read(File in_file, String_Const attribute_name)
Reads in an XML attribute with a floating point value.
Definition: File.cpp:66
float File__float_attribute_read(File in_file, String_Const attribute_name)
Reads in an XML attribute with a floating point value.
Definition: File.cpp:128
void File__little_endian_short_write(File, unsigned int xshort)
Write 16-bit xshort to file in little endian format.
Definition: File.cpp:231
void File__tag_match(File in_file, String_Const tag_name)
Matchs and "XML" start tag.
Definition: File.cpp:272
unsigned int File__little_endian_short_read(File)
Read a little endian short (16-bits) from file.
Definition: File.cpp:215
void File__byte_write(File file, unsigned int byte)
Write byte ot file.
Definition: File.cpp:29
const char * String_Const
Definition: String.hpp:9
File File__open(String_Const file_name, String_Const flags)
will open file_name using flags to specify read/write options.
Definition: File.cpp:243
void File__string_match(File in_file, String_Const pattern)
Exactly matches pattern read from in_file.
Definition: File.cpp:255


fiducial_lib
Author(s): Wayne Gramlich
autogenerated on Thu Dec 28 2017 04:06:53