WarpTwin
Documentation for WarpTwin models and classes.
Loading...
Searching...
No Matches
fileutils.h
Go to the documentation of this file.
1/******************************************************************************
2* Copyright (c) ATTX INC 2025. All Rights Reserved.
3*
4* This software and associated documentation (the "Software") are the
5* proprietary and confidential information of ATTX INC. The Software is
6* furnished under a license agreement between ATTX and the user organization
7* and may be used or copied only in accordance with the terms of the agreement.
8* Refer to 'license/attx_license.adoc' for standard license terms.
9*
10* EXPORT CONTROL NOTICE: THIS SOFTWARE MAY INCLUDE CONTENT CONTROLLED UNDER THE
11* INTERNATIONAL TRAFFIC IN ARMS REGULATIONS (ITAR) OR THE EXPORT ADMINISTRATION
12* REGULATIONS (EAR99). No part of the Software may be used, reproduced, or
13* transmitted in any form or by any means, for any purpose, without the express
14* written permission of ATTX INC.
15******************************************************************************/
16#ifndef UTILS_FILE_UTILS_H
17#define UTILS_FILE_UTILS_H
18
19#include <string>
20#include <vector>
21
22namespace warptwin {
23
27 bool fileExist(const std::string& name);
28
61 int readTxtFile(const std::string& filename, std::vector<std::vector<double>>& data,
62 const std::string& header_end_mark = "!", const std::string& delimeter = " ",
63 unsigned int num_cols = 10);
64}
65
66#endif
Class to propagate CR3BP dynamics in characteristic units.
Definition statistics.hpp:22
bool fileExist(const std::string &name)
Function to quickly check and verify whether a file exists.
Definition fileutils.cpp:26
int readTxtFile(const std::string &filename, std::vector< std::vector< double > > &data, const std::string &header_end_mark, const std::string &delimiter, unsigned int num_cols)
Reads a text file and populates a 2D vector with column-based numerical data.
Definition fileutils.cpp:31