Skip to content

Use RAII for the DocumentManager #95

@webern

Description

@webern

The DocumentManager is a weird concept. Explain why it exists and how to use it early in the Readme and in the code itself.

For extra credit, return an RAII object instead of a document ID so that leaks won't ever happen.

e.g. std::unique_ptr<mx::api::Document> createFromFile( "/some/file.xml" ).

Metadata

Metadata

Assignees

No one assigned

    Labels

    breakingfixes or implementation that require breaking changesfeaturenew feature request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions