Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: version_1_9
Fetching contributors…

Cannot retrieve contributors at this time

52 lines (44 sloc) 1.319 kB
#ifndef INCLUDE_WINXEDXX_HANDLE_H
#define INCLUDE_WINXEDXX_HANDLE_H
// winxedxx_handle.h
// (C) 2011-2012 Julián Albo "NotFound"
namespace WinxedXX
{
class WxxFileHandle : public WxxDefault
{
public:
WxxFileHandle(int predef = 0);
~WxxFileHandle();
WxxObject *open(const std::string &name);
WxxObject *open(const std::string & name, const std::string &mode);
WxxObject *open(WxxObjectPtr name);
WxxObject *open(WxxObjectPtr name, WxxObjectPtr mode);
WxxObjectPtr close();
void print(WxxObjectPtr obj);
WxxObjectPtr call_method(const std::string &methname, WxxObjectArray &args);
private:
FILE *f;
WxxObjectPtr read(int n);
WxxObjectPtr readline();
};
class WxxStringHandle : public WxxDefault
{
public:
WxxStringHandle();
~WxxStringHandle();
WxxObject *open(const std::string &name);
WxxObject *open(const std::string & name, const std::string &mode);
WxxObject *open(WxxObjectPtr name);
WxxObject *open(WxxObjectPtr name, WxxObjectPtr mode);
WxxObjectPtr close();
void print(WxxObjectPtr obj);
WxxObjectPtr call_method(const std::string &methname, WxxObjectArray &args);
private:
std::string s;
int pos;
bool eof() const;
WxxObjectPtr read(int n);
};
} // namespace WinxedXX
#endif
// End of winxedxx_handle.h
Jump to Line
Something went wrong with that request. Please try again.