2
3
4
5
6
7
8
9
10
11
12
13
14
15
16#ifndef CPP_APP_CONNECTION_H
17#define CPP_APP_CONNECTION_H
23#include "nlohmann/json.hpp"
25#include "data_management/DataIOBase.h"
62 std::array<
unsigned int, 2>
size;
81 void fromJson(
const nlohmann::json &j);
Class to propagate CR3BP dynamics in characteristic units.
Definition ConfigurationWriter.cpp:18
const std::vector< std::pair< connection_type_e, std::string > > CONN_TYPES
Hold all connection type enum values to loop through.
Definition Connection.h:37
connection_type_e
Hold acceptable values for connection type.
Definition Connection.h:29
Hold all information related to a connection point in the ImGUI UX.
Definition Connection.h:48
int user_set
Flag to indicate whether user has set this value via the GUI.
Definition Connection.h:77
long unique_id
The unique ID of the connection given by the ImGUI UX or other.
Definition Connection.h:53
connection_type_e connection_type
The type of connection.
Definition Connection.h:56
std::array< unsigned int, 2 > size
The size of the connection as rows, columns.
Definition Connection.h:62
nlohmann::json toJson()
Create json object from Connection.
Definition Connection.cpp:40
void dump()
Output all connection information.
Definition Connection.cpp:60
std::vector< std::vector< std::string > > values
The values held within the connection. All values are stored as string.
Definition Connection.h:65
long paired_connection_id
The connection to which this connection is paired, given by unique ID.
Definition Connection.h:71
int writable
Boolean indicating whether the connection is writable (true) or not (false)
Definition Connection.h:68
void fromJson(const nlohmann::json &j)
Create Connection object from json.
Definition Connection.cpp:19
std::string name
The name of the connection.
Definition Connection.h:50
long parent_node_id
The parent to this connection, given by its unique ID number.
Definition Connection.h:74
clockwerk::dataio_types_e data_type
The data type associated with the connection.
Definition Connection.h:59