acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
_c.h
1#pragma once
2
3
4#ifndef WINDOWS
5
6#define _SH_DENYNO 0
7#define _SH_DENYWR 0
8#define _SH_DENYRW 0
9
10#endif
11
12
13//CLASS_DECL_ACME ::i32_bool dir_mk(const ::scoped_string & scopedstr);
14//CLASS_DECL_ACME ::i32_bool dir_appdata(char_pointer psz, size_t size);
15//CLASS_DECL_ACME ::i32_bool file_is_true_dup(const ::file::path & path);
16
17//CLASS_DECL_ACME ::i32_bool file_path_is_relative(const ::scoped_string & scopedstr);
18
19//CLASS_DECL_ACME ::i32_bool file_system()->exists(const ::file::path & path);
20
21
22//CLASS_DECL_ACME ::i32_bool is_file_ok(const ::file::path & path1, const ::scoped_string & scopedstrTemplate);
23//CLASS_DECL_ACME ::i32_bool xxxfile_put_contents(const ::file::path & path, const void * contents, memsize len);
24//CLASS_DECL_ACME ::i32_bool get_temp_file_name_dup(char_pointer szRet, count iBufferSize, const_char_pointer pszName, const ::scoped_string & scopedstrExtension);
25//CLASS_DECL_ACME ::i32_bool get_temp_file_name_template(char_pointer szRet, character_count iBufferSize, const_char_pointer pszName, const ::scoped_string & scopedstrExtension, const ::scoped_string & scopedstrTemplate);
26//CLASS_DECL_ACME filesize file_length(const ::file::path & path);
27
28
29
30//CLASS_DECL_ACME bool file_path_is_equal(const ::file::path & path1, const ::file::path & path2);
31
32
33//CLASS_DECL_ACME ::i32_bool file_copy_dup(const ::scoped_string & scopedstrDup, const ::scoped_string & scopedstrSrc, ::i32_bool bOverwrite);
34
35
36//CLASS_DECL_ACME void _init_FILE();
37//
38//CLASS_DECL_ACME FILE * FILE_open(const_char_pointer pszPath, const_char_pointer attrs, ::i32 iShare);
39//CLASS_DECL_ACME ::i32 FILE_printf(FILE *fp, const_char_pointer s, ...);
40//CLASS_DECL_ACME ::i32 FILE_close(FILE *fp);
41//CLASS_DECL_ACME ::i32 FILE_eof(FILE *fp);
42//CLASS_DECL_ACME filesize FILE_seek(FILE *str, filesize offset, ::i32 origin);
43//CLASS_DECL_ACME filesize FILE_tell(FILE *fp);
44//CLASS_DECL_ACME filesize FILE_read(void * buffer, memsize size, memsize count, FILE * str);
45//CLASS_DECL_ACME filesize FILE_write(const void * buffer, memsize size, memsize count, FILE * str);
46//CLASS_DECL_ACME char_pointer FILE_gets(char_pointer str, character_count n, FILE *s);
47//CLASS_DECL_ACME ::i32 FILE_getc(FILE *s);
48//CLASS_DECL_ACME ::i32 FILE_ungetc(::i32 c,FILE *s);
49//CLASS_DECL_ACME ::i32 FILE_error(FILE *s);
50//CLASS_DECL_ACME ::i32 FILE_flush(FILE *s);
51//CLASS_DECL_ACME filesize FILE_get_size(FILE *s);
52//CLASS_DECL_ACME ::i32 FILE_touch(const ::scoped_string & scopedstr);
53//
54//
55//#ifdef WINDOWS
56//CLASS_DECL_ACME FILE *FILE_wopen(const wide_character * path, const wide_character * attrs, ::i32 iShare);
57//CLASS_DECL_ACME ::i32 FILE_wprintf(FILE * fp, const wide_character * s, ...);
58//CLASS_DECL_ACME wide_character * FILE_getws(wide_character * str, character_count n, FILE * s);
59//CLASS_DECL_ACME wint_t FILE_getwc(FILE * s);
60//CLASS_DECL_ACME wint_t FILE_ungetwc(wint_t w, FILE * s);
61//#endif
62//
63//
64//CLASS_DECL_ACME filesize FILE_size(FILE * f);
65//
66//CLASS_DECL_ACME ::i32_bool fd_set_size(::i32 fd,size_t iSize);
67//CLASS_DECL_ACME ::i32_bool FILE_set_size(FILE * file,size_t iSize);
68//
70//
71//
72//
76//
77
78CLASS_DECL_ACME bool is_directory(const ::file::path & path);
79
80CLASS_DECL_ACME void create_directory(const ::file::path & path);
81
82CLASS_DECL_ACME void erase_directory(const ::file::path & path);
83
84CLASS_DECL_ACME bool file_exists(const ::file::path & path);
85
86CLASS_DECL_ACME void file_delete(const ::file::path & path);
87
88
89