sprint 1-alpha
Classes | Namespaces | Typedefs | Functions
sprint/io/xstream/tools.h File Reference

some utility to handle URL object in xstream More...

Go to the source code of this file.

Classes

struct  sprint::io::url_t
 This struct contain any information able to open a xstream. More...

Namespaces

namespace  sprint
 

Sprint is a lightweight c++ library to handle different task with crossplatform attention (trying to compile both on MSVC and Mingw on WIn32 and GCC on Linux.


namespace  sprint::io
 

the sprint::io namespace, which contains API to read and write from various device


Typedefs

typedef xstream *(* sprint::io::xProtocolCallback )(const url_t &url, void *param)
typedef xstream *(* sprint::io::xExtensionCallback )(xstream *parent, void *param)

Functions

void sprint::io::register_protocol (const char *proto, xProtocolCallback proc, void *param)
 Register a xstream factory protocol based associated with proto.
void sprint::io::register_extension (const char *extension, xExtensionCallback proc, void *param)
 Register a xstream factory extension based associated with extension.
xfolder * sprint::io::open_folder_from_url (const url_t &url)
xfolder * sprint::io::open_folder_from_url (const char *url)
xstream * sprint::io::open_stream_from_url (const url_t &url)
xstream * sprint::io::open_stream_from_url (const char *url)
unsigned int sprint::io::copy (xstream *src, xstream *dst)
bool sprint::io::readline (xstream *src, std::string &str, char eol)
bool sprint::io::readline (xstream *src, char *buf, int buf_size, char eol)

Detailed Description

some utility to handle URL object in xstream

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines