ct2rs 0.9.18

Rust bindings for OpenNMT/CTranslate2
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#include <fstream>
#include <string>

namespace ctranslate2 {

  std::ifstream open_file_read(const std::string& path,
                               std::ios_base::openmode mode = std::ios_base::in,
                               bool check = true);

  std::ofstream open_file_write(const std::string& path,
                                std::ios_base::openmode mode = std::ios_base::out,
                                bool check = true);

}