26 #ifndef IN_FILE_INCLUDED
27 #define IN_FILE_INCLUDED
34 #include "../base/ver.h"
43 #include "../base/str.h"
46 #ifndef CHECK_INCLUDED
47 #include "../base/check.h"
62 static const int IN_FILE_NAMESIZE = 128;
68 static const str_t IN_FILE_CGI_FILENAME_CHARS =
69 "_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
102 int read(
char *buf,
int size);
108 inline bool is_open()
110 {
return(File.is_open()); }
112 {
return(Fd != -1); }
119 inline str_t filename()
120 {
return(Filename); }
142 char Filename[IN_FILE_NAMESIZE+1];
160 #define IN_FILE_NULL (static_cast<in_file_t>(0))
Superclass of input sources (e.g., file)
const char * str_t
Definition: str.h:41