NCAR / NCAR/MechanismConfiguration

Add `write()` export

Open
#273 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1
Forks
3
Avg merge
9h 30m
Merged PRs (30d)
4

Description

See #268. Add include/mechanism_configuration/exporter.hpp.

Acceptance criteria

  • void write(const Mechanism&, const std::filesystem::path&) compiles
  • .yaml produces YAML; .json produces JSON; unknown suffix is an error
  • Round-trip: parse(path) then write(out) then parse(out) produces equal Mechanism

Ideas

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read #268 and inspect the existing parse(path) behavior before starting in include/mechanism_configuration/exporter.hpp. Implement the requested write(const Mechanism&, const std::filesystem::path&) interface, then verify YAML and JSON output, unknown-suffix errors, and the parse/write/parse round-trip acceptance criteria.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.