opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
model_specification.h
Go to the documentation of this file.
1#pragma once
2
3#include <libopynsim/model.h>
4
6
7#include <filesystem>
8#include <string>
9
10namespace OpenSim { class Model; }
11
12namespace opyn
13{
20 public:
21 static ModelSpecification from_osim(const std::filesystem::path& source);
24
27
29 explicit ModelSpecification(OpenSim::Model&& opensim_model);
30
33 Model compile() const;
34
38 std::filesystem::path root_directory() const;
39
42 void set_root_directory(const std::filesystem::path&);
43
45 void to_osim(const std::filesystem::path& destination) const;
46
48 std::string to_osim() const;
49
55
58 void flush_in_memory_resources_to(const std::filesystem::path& directory);
59 private:
60 class Impl;
62
64 };
65}
Definition model_specification.h:19
void flush_in_memory_resources_to(const std::filesystem::path &directory)
ModelSpecification(OpenSim::Model &&opensim_model)
Constructs a ModelSpecification from opensim_model.
std::filesystem::path root_directory() const
static ModelSpecification example_pendulum()
static ModelSpecification from_osim(const std::filesystem::path &source)
static ModelSpecification example_double_pendulum()
void set_root_directory(const std::filesystem::path &)
void to_osim(const std::filesystem::path &destination) const
Writes *this to destination in an .osim format.
ModelSpecification()
Constructs an empty ModelSpecification.
std::string to_osim() const
Returns *this written to a std::string in an .osim format.
Definition model.h:26
Definition copy_on_upd_ptr.h:22
Definition static_component_registries.h:3
Definition component_registry.h:14