9#ifndef QTSMITHY_MODEL_H
10#define QTSMITHY_MODEL_H
15#include <QCoreApplication>
19QTSMITHY_DECLARE_TEST(
Model)
21QTSMITHY_BEGIN_NAMESPACE
27Q_DECLARE_TR_FUNCTIONS(
Model);
37 ConflictingMetadata = 6,
48 bool insert(
const QJsonObject &ast);
54 QJsonObject metadata()
const;
64 Q_DECLARE_PRIVATE(
Model)
65 QTSMITHY_BEFRIEND_TEST(
Model)
The Model class provides a Qt representation of a Smithy semantic model.
Definition model.h:26
QHash< ShapeId, Shape > shapes(const Shape::Type &type=Shape::Type::Undefined) const
Definition model.cpp:230
Shape shape(const ShapeId &shapeId) const
Definition model.cpp:223
bool insert(const QJsonObject &ast)
Add the logical content of the JSON AST model file given by ast into this semantic model.
Definition model.cpp:102
bool finish()
Definition model.cpp:186
Model()
Constructs a new, empty Smithy model.
Definition model.cpp:27
The ShapeId class provides a Qt representation of a Smithy Shape ID.
Definition shapeid.h:29
The Shape class provides a Qt representation of a Smithy semantic shape.
Definition shape.h:25
Type
Definition shape.h:37
@ Undefined
The shape is undefined, usually the result of an error condition.
Definition shape.h:38
Declares the Shape class.
Declares the ShapeId class.