cgv
Loading...
Searching...
No Matches
cmdline_tools.h
1#pragma once
2
3#include <cstdint>
4#include <string>
5#include <stdio.h>
6
7#include "lib_begin.h"
8
9namespace cgv {
10 namespace os {
11
13extern CGV_API bool expand_archive(const std::string& file_path, const std::string& destination_path);
14
16extern CGV_API bool compress_archive(const std::string& file_filter_path, const std::string& archive_path);
17
19extern CGV_API std::string query_system_output(std::string cmd, bool cerr);
20
34extern CGV_API size_t read_system_output(std::string cmd, uint8_t* buffer, size_t buffer_size, const char* progression_text = 0, bool use_cerr = false, void (*on_progress_update)(int, void*) = 0, void* user_data = 0, size_t block_size = 4096, bool cycle_till_eof = false);
35
41extern CGV_API FILE* open_system_output(const std::string& cmd, bool in_binary_mode = true);
48extern CGV_API FILE* open_system_input(const std::string& cmd, bool in_binary_mode = true);
54extern CGV_API int close_system_input(FILE* fp);
55
56 }
57}
58
59#include <cgv/config/lib_end.h>
the cgv namespace
Definition print.h:11