All Classes Namespaces Functions Variables Groups Pages
QC_ReadOnlyFile.dox.h
namespace Qore {
class ReadOnlyFile {
public:
int close();
public:
constructor(string path, *string encoding);
public:
copy();
public:
destructor();
public:
string getEncoding();
public:
*string getFileName();
public:
int getPos();
public:
*string getchar();
public:
hash hstat();
public:
bool isDataAvailable(timeout timeout_ms = 0);
public:
bool isOpen();
public:
bool isTty();
public:
nothing open(string path, *string encoding);
public:
*string read(softint size, timeout timeout_ms = -1);
public:
*binary readBinary(softint size, timeout timeout_ms = -1);
public:
*string readLine(bool incl_eol = True, *string eol);
public:
*int readi1();
public:
*int readi2();
public:
*int readi2LSB();
public:
*int readi4();
public:
*int readi4LSB();
public:
*int readi8();
public:
*int readi8LSB();
public:
*int readu1();
public:
*int readu2();
public:
*int readu2LSB();
public:
*int readu4();
public:
*int readu4LSB();
public:
nothing setEncoding(*string encoding);
public:
nothing setEventQueue(Qore::Thread::Queue queue);
public:
nothing setEventQueue();
public:
int setPos(int pos = 0);
public:
list stat();
public:
hash statvfs();
};
const S_IFBLK = S_IFBLK;
const S_IFCHR = S_IFCHR;
const S_IFDIR = S_IFDIR;
const S_IFLNK = S_IFLNK;
const S_IFMT = S_IFMT;
const S_IFREG = S_IFREG;
const S_IFSOCK = S_IFSOCK;
const S_IFWHT = S_IFWHT;
const S_IRGRP = S_IRGRP;
const S_IROTH = S_IROTH;
const S_IRUSR = S_IRUSR;
const S_IRWXG = S_IRWXG;
const S_IRWXO = S_IRWXO;
const S_IRWXU = S_IRWXU;
const S_ISGID = S_ISGID;
const S_ISUID = S_ISUID;
const S_ISVTX = S_ISVTX;
const S_IWGRP = S_IWGRP;
const S_IWOTH = S_IWOTH;
const S_IWUSR = S_IWUSR;
const S_IXGRP = S_IXGRP;
const S_IXOTH = S_IXOTH;
const S_IXUSR = S_IXUSR;
};