_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
Go to the documentation of this file.
64 virtual
int write(const
char *data,
unsigned int size) = 0;
86 if (type != rhs.
type) {
87 return type < rhs.
type;
89 return name < rhs.
name;
108 int open(
const char *name,
long flags);
111 int read(
void *buf,
size_t len);
112 int seek(
long offset,
int whence);
114 SDL_RWops * as_SDL_RWops();
132 #define CL_OPEN_READ 0x1
133 #define CL_OPEN_WRITE 0x2
134 #define CL_WRITE_GZ 0x4
135 #define CL_WRITE_BZ2 0x8
149 extern std::vector<std::string>
QuoteArguments(std::vector<std::string> args);
153 #endif // !__IOLIB_H__
void virtual int write(const char *data, unsigned int size)=0
void printf(const char *format,...) PRINTF_VAARG_ATTRIBUTE(2
Definition: iolib.cpp:773
bool operator<(const Vec2T< T > &lhs, const Vec2T< T > &rhs)
Definition: vec2i.h:60
@ CLF_TYPE_INVALID
Definition: iolib.h:126
virtual ~FileWriter()
Definition: iolib.h:60
int ReadDataDirectory(const char *dirname, std::vector< FileList > &flp)
Read the contents of a directory.
Definition: iolib.cpp:711
std::vector< std::string > QuoteArguments(std::vector< std::string > args)
Definition: iolib.cpp:854
int type
Name of the file.
Definition: iolib.h:93
bool CanAccessFile(const char *filename)
Definition: iolib.cpp:692
@ CLF_TYPE_GZIP
plain text file handle
Definition: iolib.h:128
FileWriter * CreateFileWriter(const std::string &filename)
Definition: iolib.cpp:840
@ CLF_TYPE_BZIP2
gzip file handle
Definition: iolib.h:129
std::string name
Definition: iolib.h:92
std::string LibraryFileName(const char *file)
Build library path name.
Definition: iolib.cpp:677
FileList()
Definition: iolib.h:82
@ CLF_TYPE_PLAIN
invalid file handle
Definition: iolib.h:127
#define PRINTF_VAARG_ATTRIBUTE(a, b)
Definition: stratagus.h:108
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.