MeshLib C Docs
Loading...
Searching...
No Matches
MRIOFilters.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMisc/common.h>
4#include <MRCMisc/exports.h>
5
6#include <stdbool.h>
7#include <stddef.h>
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13typedef struct MR_std_optional_MR_IOFilter MR_std_optional_MR_IOFilter; // Defined in `#include <MRCMisc/std_optional_MR_IOFilter.h>`.
14typedef struct MR_std_string MR_std_string; // Defined in `#include <MRCMisc/std_string.h>`.
15typedef struct MR_std_vector_MR_IOFilter MR_std_vector_MR_IOFilter; // Defined in `#include <MRCMisc/std_vector_MR_IOFilter.h>`.
16
17
20typedef struct MR_IOFilter MR_IOFilter;
21
26
31MRC_API void MR_IOFilter_Set_name(MR_IOFilter *_this, const char *value, const char *value_end);
32
37
38// "*.ext" or "*.ext1;*.ext2;*.ext3"
43
44// "*.ext" or "*.ext1;*.ext2;*.ext3"
49MRC_API void MR_IOFilter_Set_extensions(MR_IOFilter *_this, const char *value, const char *value_end);
50
51// "*.ext" or "*.ext1;*.ext2;*.ext3"
56
60
65
67MRC_API const MR_IOFilter *MR_IOFilter_OffsetPtr(const MR_IOFilter *ptr, ptrdiff_t i);
68
71
75
82MRC_API MR_IOFilter *MR_IOFilter_Construct(const char *_name, const char *_name_end, const char *_ext, const char *_ext_end);
83
86
89
94
99MRC_API bool MR_IOFilter_isSupportedExtension(const MR_IOFilter *_this, const char *ext, const char *ext_end);
100
107
114MRC_API MR_std_optional_MR_IOFilter *MR_findFilter(const MR_std_vector_MR_IOFilter *filters, const char *extension, const char *extension_end);
115
116#ifdef __cplusplus
117} // extern "C"
118#endif
struct MR_std_string MR_std_string
Definition MRCtm.h:32
MRC_API void MR_IOFilter_Destroy(const MR_IOFilter *_this)
Destroys a heap-allocated instance of MR_IOFilter. Does nothing if the pointer is null.
MRC_API MR_IOFilter * MR_IOFilter_DefaultConstructArray(size_t num_elems)
MRC_API MR_IOFilter * MR_IOFilter_ConstructFromAnother(MR_PassBy _other_pass_by, MR_IOFilter *_other)
MRC_API MR_std_optional_MR_IOFilter * MR_findFilter(const MR_std_vector_MR_IOFilter *filters, const char *extension, const char *extension_end)
MRC_API MR_IOFilter * MR_IOFilter_OffsetMutablePtr(MR_IOFilter *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API void MR_IOFilter_Set_extensions(MR_IOFilter *_this, const char *value, const char *value_end)
MRC_API bool MR_IOFilter_isSupportedExtension(const MR_IOFilter *_this, const char *ext, const char *ext_end)
MRC_API const MR_IOFilter * MR_IOFilter_OffsetPtr(const MR_IOFilter *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API MR_std_string * MR_IOFilter_GetMutable_extensions(MR_IOFilter *_this)
MRC_API MR_IOFilter * MR_IOFilter_DefaultConstruct(void)
struct MR_std_optional_MR_IOFilter MR_std_optional_MR_IOFilter
Definition MRIOFilters.h:13
MRC_API void MR_IOFilter_Set_name(MR_IOFilter *_this, const char *value, const char *value_end)
MRC_API MR_IOFilter * MR_IOFilter_AssignFromAnother(MR_IOFilter *_this, MR_PassBy _other_pass_by, MR_IOFilter *_other)
MRC_API MR_IOFilter * MR_IOFilter_Construct(const char *_name, const char *_name_end, const char *_ext, const char *_ext_end)
MRC_API MR_std_vector_MR_IOFilter * MR_bitor_std_vector_MR_IOFilter(const MR_std_vector_MR_IOFilter *a, const MR_std_vector_MR_IOFilter *b)
struct MR_IOFilter MR_IOFilter
Definition MRIOFilters.h:20
MRC_API void MR_IOFilter_DestroyArray(const MR_IOFilter *_this)
Destroys a heap-allocated array of MR_IOFilter. Does nothing if the pointer is null.
MRC_API MR_std_string * MR_IOFilter_GetMutable_name(MR_IOFilter *_this)
MRC_API const MR_std_string * MR_IOFilter_Get_name(const MR_IOFilter *_this)
struct MR_std_vector_MR_IOFilter MR_std_vector_MR_IOFilter
Definition MRIOFilters.h:15
MRC_API const MR_std_string * MR_IOFilter_Get_extensions(const MR_IOFilter *_this)
MR_PassBy
Definition common.h:23
#define MRC_API
Definition exports.h:11