Skip to content


JSON file format reader for Project. More...

#include <JsonProjectReader.h>

Inherits from shapeworks::ProjectReader

Public Functions

JsonProjectReader(Project & project)
virtual bool read_project(std::string filename) override
Read a project from a file.
virtual StringMap get_parameters(std::string name) override
virtual StringMultiMap get_multi_parameters(std::string name) override

Additional inherited members

Public Types inherited from shapeworks::ProjectReader

using project::types::StringMapList StringMapList
using project::types::StringMap StringMap
using project::types::StringList StringList
using project::types::StringMultiMap StringMultiMap

Public Functions inherited from shapeworks::ProjectReader

ProjectReader(Project & project)
virtual ~ProjectReader() =default

Protected Functions inherited from shapeworks::ProjectReader

void load_subjects(StringMapList list)
Load subjects from string map list.
void load_parameters()
void load_parameter(std::string name, StringMap map)
void load_landmark_definitions(StringMapList list)
bool contains(StringMap map, std::string key)
StringList get_keys(StringMap map)

Protected Attributes inherited from shapeworks::ProjectReader

Project & project_

Detailed Description

class shapeworks::JsonProjectReader;

JSON file format reader for Project.

This class enables reader of Project objects from JSON file format

Public Functions Documentation

function JsonProjectReader

    Project & project

function ~JsonProjectReader


function read_project

virtual bool read_project(
    std::string filename
) override

Read a project from a file.

Reimplements: shapeworks::ProjectReader::read_project

function get_parameters

virtual StringMap get_parameters(
    std::string name
) override

Reimplements: shapeworks::ProjectReader::get_parameters

function get_multi_parameters

virtual StringMultiMap get_multi_parameters(
    std::string name
) override

Reimplements: shapeworks::ProjectReader::get_multi_parameters

Updated on 2024-03-17 at 12:58:44 -0600