10#include <WXP/Buffer.h>
11#include <WXP/FileAttr.h>
12#include <WXP/String.h>
31 static size_t curl_write(
char *buffer,
size_t size,
size_t nitems,
33 static size_t curl_header(
char *buffer,
size_t size,
size_t nitems,
35 int curl_fill_buffer(
int size );
40 File(
const char *file,
const char *raccess );
42 File(
const char *file,
int raccess );
45 int open(
const char *file,
const char *raccess );
47 int open(
const char *file,
int raccess );
48 int getLine(
char *
string,
int len );
55 int scanf(
const char *fmt, ... );
56 int printf(
const char *fmt, ... );
57 int read(
unsigned char *buf,
int size,
int num );
58 int read(
unsigned char *buf,
int size );
61 int write(
const unsigned char *buf,
int size,
int num );
62 int write(
const unsigned char *buf,
int size );
64 int seek(
int byte,
int where );
66 inline int seek(
int byte ){
return seek(
byte, 0 ); };
81 static const int FILE_LENGTH = 100;
This class creates a generic buffer for data.
Definition Buffer.h:5
This class accesses files.
Definition File.h:15
int tell()
Definition File.cc:600
int init()
Definition File.cc:37
bool endFile()
Definition File.cc:454
int scanf(const char *fmt,...)
Definition File.cc:465
int seek(int byte, int where)
Definition File.cc:590
int rewind()
Definition File.cc:421
int open(const char *file, const char *raccess)
Definition File.cc:94
int getLine(char *string, int len)
Definition File.cc:344
int read(unsigned char *buf, int size, int num)
Definition File.cc:507
int write(const unsigned char *buf, int size, int num)
Definition File.cc:564
int close()
Definition File.cc:430
int seek(int byte)
Definition File.h:66
int skipLine()
Definition File.cc:397
~File()
Definition File.cc:85
File()
Definition File.cc:51
int setShare(int mode)
Definition File.cc:614
bool isOpen()
Definition File.cc:273
int printf(const char *fmt,...)
Definition File.cc:486
This is a variable length string class.
Definition String.h:5
All WXP classes fall under the WXP namespace.
Definition Angle.h:4
This defines some basic file attributes.
Definition FileAttr.h:11