Home
last modified time | relevance | path

Searched refs:IniFile (Results 1 – 7 of 7) sorted by relevance

/tools/netsim/rust/common/src/util/
Dini_file.rs27 pub struct IniFile { struct
34 impl IniFile { argument
40 pub fn new(filepath: PathBuf) -> IniFile { in new() argument
41 IniFile { data: HashMap::new(), filepath } in new()
129 use super::IniFile;
157 let mut inifile = IniFile::new(filepath.clone()); in test_read()
184 let mut inifile = IniFile::new(filepath.clone()); in test_read_no_newline()
198 let mut inifile = IniFile::new(filepath.clone()); in test_read_no_file()
214 let mut inifile = IniFile::new(filepath.clone()); in test_read_multiple_lines()
231 let mut inifile = IniFile::new(filepath); in test_insert_and_contains_key()
[all …]
Dos_utils.rs30 use super::ini_file::IniFile;
97 let mut ini_file = IniFile::new(filepath); in get_server_address()
/tools/netsim/src/util/
Dini_file.cc27 bool IniFile::Read() { in Read()
53 bool IniFile::Write() { in Write()
72 bool IniFile::HasKey(const std::string &key) const { in HasKey()
76 std::optional<std::string> IniFile::Get(const std::string &key) const { in Get()
82 void IniFile::Set(const std::string &key, std::string_view value) { in Set()
Dini_file_test.cc45 IniFile iniFile(tempFileName_); in TEST_P()
61 IniFile iniFile(tempFileName); in TEST()
85 IniFile iniFile(tempFileName); in TEST()
Dini_file.h28 class IniFile {
32 explicit IniFile(std::string filepath = "") : filepath(std::move(filepath)) {} in filepath()
Dos_utils.cc93 IniFile iniFile(filepath); in GetServerAddress()
/tools/netsim/rust/daemon/src/
Dservice.rs24 use netsim_common::util::ini_file::IniFile;
149 let mut ini_file = IniFile::new(filepath); in write_ports_to_ini()