Skip to content

Nested objects serialize/deserialize #1941

@SadE54

Description

@SadE54

Hi ,

I have to write a config file from a node editor with something like this

struct Node
{
int id;
string name;
}

struct Pin
{
int id;
Node* node;
}

struct Link
{
int id;
Pin* start;
Pin* end;
}

struct Config
{
std::vector Nodes;
std::vector Pins;
std::vector Links;
}

How can i serialize the topover object Config ? and deserialize ?
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions