CANdevStudio
Development tool for CAN bus simulation
Loading...
Searching...
No Matches
projectconfigvalidator.h
Go to the documentation of this file.
1#ifndef SRC_COMPONENTS_PROJECTCONFIG_PROJECTCONFIGVALIDATOR_H_
2#define SRC_COMPONENTS_PROJECTCONFIG_PROJECTCONFIGVALIDATOR_H_
3
4#include <QByteArray>
5
6#include <rapidjson/schema.h>
7
8#include <memory>
9
11{
12public:
13 static bool loadConfigSchema(const char* filename=":/files/json/projectConfigSchema.json");
14 static bool validateConfiguration(const QByteArray& wholeFile);
15
16private:
17 static std::shared_ptr<rapidjson::SchemaDocument> configSchema;
18 static bool schemaInitialized;
19};
20
21#endif /* SRC_COMPONENTS_PROJECTCONFIG_PROJECTCONFIGVALIDATOR_H_ */
Definition projectconfigvalidator.h:11
static bool loadConfigSchema(const char *filename=":/files/json/projectConfigSchema.json")
Definition projectconfigvalidator.cpp:49
static bool validateConfiguration(const QByteArray &wholeFile)
Definition projectconfigvalidator.cpp:12