Qore Programming Language Reference Manual  0.8.7
 All Classes Namespaces Functions Variables Groups Pages
QC_File.dox.h
1 
2 namespace Qore {
4 
50 class File : public ReadOnlyFile {
51 
52 public:
54 
69 nothing chown(softint uid, softint gid = -1);
70 
71 public:
73 
89  constructor(*string encoding);
90 
91 public:
93 
98  copy();
99 
100 public:
102 
104  destructor();
105 
106 public:
108 
129 int f_printf(string fmt, ...);
130 
131 public:
133 
138 int f_printf();
139 
140 public:
142 
164 int f_vprintf(string fmt, any fmt_args);
165 
166 public:
168 
173 int f_vprintf();
174 
175 public:
177 
184 string getCharset();
185 
186 public:
188 
210 hash getLockInfo();
211 
212 public:
214 
232 nothing getTerminalAttributes(TermIOS termios);
233 
234 public:
236 
254 
255 public:
257 
287 int lock(softint type = F_RDLCK, softint start = 0, softint len = 0, softint whence = SEEK_SET);
288 
289 public:
291 
319 nothing lockBlocking(softint type = F_RDLCK, softint start = 0, softint len = 0, softint whence = SEEK_SET);
320 
321 public:
323 
350 int open(string path, softint flags = O_RDONLY, softint mode = 0666, *string encoding);
351 
352 public:
354 
386 nothing open2(string path, softint flags = O_RDONLY, softint mode = 0666, *string encoding);
387 
388 public:
390 
410 int print(string data);
411 
412 public:
414 
435 int printf(string fmt, ...);
436 
437 public:
439 
444 int printf();
445 
446 public:
448 
453 nothing setCharset(*string encoding);
454 
455 public:
457 
490 nothing setTerminalAttributes(softint action = TCSANOW, TermIOS termios);
491 
492 public:
494 
504 int sync();
505 
506 public:
508 
530 int vprintf(string fmt, any fmt_args);
531 
532 public:
534 
539 int vprintf();
540 
541 public:
543 
560 int write(binary data);
561 
562 public:
564 
584 int write(string data);
585 
586 public:
588 
605 int writei1(int c);
606 
607 public:
609 
626 int writei2(int s);
627 
628 public:
630 
647 int writei2LSB(int s);
648 
649 public:
651 
668 int writei4(int i);
669 
670 public:
672 
689 int writei4LSB(int i);
690 
691 public:
693 
710 int writei8(int i);
711 
712 public:
714 
731 int writei8LSB(int i);
732 
733 public:
735 
754 static hash hlstat(string path);
755 
756 public:
758 
777 static hash hstat(string path);
778 
779 public:
781 
801 static list lstat(string path);
802 
803 public:
805 
824 static list stat(string path);
825 
826 public:
828 
847 static hash statvfs(string path);
848 };
853 
859  const O_CREAT = O_CREAT;
865  const O_EXCL = O_EXCL;
877  const O_RDWR = O_RDWR;
879  const O_SYNC = O_SYNC;
881  const O_TRUNC = O_TRUNC;
885 
891 
893  const F_RDLCK = F_RDLCK;
895  const F_UNLCK = F_UNLCK;
897  const F_WRLCK = F_WRLCK;
899 
903 
911 };