![]() |
Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
|

Public Member Functions | |
| CSVWriter (WriteStream &stream, vector< string > name_list, bool shared=true) | |
| Create a CSVWriter that writes to a (non-owned) WriteStream. | |
| CSVWriter (CSVReaderOptions &options, FileSystem &fs, const string &file_path, FileCompressionType compression, bool shared=true) | |
| Create a CSVWriter that writes to a file. | |
| void | Initialize (bool force=false) |
| Writes header and prefix if necessary. | |
| void | WriteRawString (const string &data) |
| Writes the raw string directly into the output stream. | |
| void | WriteHeader () |
| Writes the header directly into the output stream. | |
| void | WriteRawString (const string &prefix, CSVWriterState &local_state) |
| Write the Raw String, using the local_state. | |
| void | WriteChunk (DataChunk &input, CSVWriterState &local_state) |
| Write a chunk of VARCHAR vectors to the CSV file (any casts are the responsibility of caller) | |
| void | WriteChunk (DataChunk &input) |
| (Non-shared only) variant of WriteChunk | |
| void | Flush (CSVWriterState &local_state) |
| Flushes all data in the local write state. | |
| void | Flush () |
| (Non-shared only) variant of Flush | |
| void | Reset (optional_ptr< CSVWriterState > local_state) |
| Resets the state of the writer. Warning: the file_writer is not reset. | |
| void | Close () |
| Closes the writer, optionally writes a postfix. | |
| idx_t | BytesWritten () |
| idx_t | FileSize () |
| BytesWritten + OriginalSize;. | |
| bool | WrittenAnything () |
| void | SetWrittenAnything (bool val) |
Public Attributes | |
| vector< unique_ptr< Expression > > | string_casts |
| CSVReaderOptions | options |
| CSVWriterOptions | writer_options |
Protected Member Functions | |
| void | FlushInternal (CSVWriterState &local_state) |
| void | ResetInternal (optional_ptr< CSVWriterState > local_state) |
Static Protected Member Functions | |
| static void | WriteQuoteOrEscape (WriteStream &writer, char quote_or_escape) |
| static string | AddEscapes (char to_be_escaped, char escape, const string &val) |
| static bool | RequiresQuotes (const char *str, idx_t len, const string &null_str, const vector< bool > &requires_quotes) |
| static void | WriteQuotedString (WriteStream &writer, const char *str, idx_t len, bool force_quote, const string &null_str, const vector< bool > &requires_quotes, char quote, char escape) |
| static void | WriteQuotedString (WriteStream &writer, const char *str, idx_t len, idx_t col_idx, CSVReaderOptions &options, CSVWriterOptions &writer_options) |
| static void | WriteChunk (DataChunk &input, MemoryStream &writer, CSVReaderOptions &options, bool &written_anything, CSVWriterOptions &writer_options) |
| static void | WriteHeader (MemoryStream &stream, CSVReaderOptions &options, CSVWriterOptions &writer_options) |
Protected Attributes | |
| bool | written_anything = false |
| If we've written any rows yet, allows us to prevent a trailing comma when writing JSON ARRAY. | |
| unique_ptr< BufferedFileWriter > | file_writer |
| (optional) The owned file writer of this CSVWriter | |
| WriteStream & | write_stream |
| The WriteStream to write the CSV data to. | |
| idx_t | bytes_written = 0 |
| bool | should_initialize |
| mutex | lock |
| bool | shared |
| unique_ptr< CSVWriterState > | global_write_state |
| duckdb::CSVWriter::CSVWriter | ( | WriteStream & | stream, |
| vector< string > | name_list, | ||
| bool | shared = true |
||
| ) |
Create a CSVWriter that writes to a (non-owned) WriteStream.

| duckdb::CSVWriter::CSVWriter | ( | CSVReaderOptions & | options, |
| FileSystem & | fs, | ||
| const string & | file_path, | ||
| FileCompressionType | compression, | ||
| bool | shared = true |
||
| ) |
Create a CSVWriter that writes to a file.
| void duckdb::CSVWriter::Initialize | ( | bool | force = false | ) |
Writes header and prefix if necessary.

Writes the raw string directly into the output stream.

| void duckdb::CSVWriter::WriteHeader | ( | ) |
Writes the header directly into the output stream.


| void duckdb::CSVWriter::WriteRawString | ( | const string & | prefix, |
| CSVWriterState & | local_state | ||
| ) |
Write the Raw String, using the local_state.

| void duckdb::CSVWriter::WriteChunk | ( | DataChunk & | input, |
| CSVWriterState & | local_state | ||
| ) |
Write a chunk of VARCHAR vectors to the CSV file (any casts are the responsibility of caller)


(Non-shared only) variant of WriteChunk

| void duckdb::CSVWriter::Flush | ( | CSVWriterState & | local_state | ) |
Flushes all data in the local write state.
| void duckdb::CSVWriter::Flush | ( | ) |
(Non-shared only) variant of Flush

| void duckdb::CSVWriter::Reset | ( | optional_ptr< CSVWriterState > | local_state | ) |
Resets the state of the writer. Warning: the file_writer is not reset.
| void duckdb::CSVWriter::Close | ( | ) |
Closes the writer, optionally writes a postfix.
| idx_t duckdb::CSVWriter::BytesWritten | ( | ) |
| idx_t duckdb::CSVWriter::FileSize | ( | ) |
BytesWritten + OriginalSize;.
|
inline |
|
inline |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |