mirror of
https://github.com/latentPrion/cppbessot.git
synced 2026-04-18 02:54:23 +00:00
Commit the generated files
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* AUTO-GENERATED BY CppBeSsot.
|
||||
* Direct edits are pointless: this file is regenerated.
|
||||
* Update the OpenAPI schema and/or CppBeSsot templates, then regenerate generated-* outputs.
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
|
||||
#include <nlohmann/json.hpp>
|
||||
#include <odb/core.hxx>
|
||||
|
||||
namespace models {
|
||||
|
||||
#pragma db model version(1, 1)
|
||||
#pragma db object table("Agent")
|
||||
class Agent
|
||||
{
|
||||
public:
|
||||
#pragma db id
|
||||
// odbAddedIn: 1.1
|
||||
std::string id{};
|
||||
// odbAddedIn: 1.1
|
||||
std::string role{};
|
||||
// odbAddedIn: 1.1
|
||||
bool persistent{};
|
||||
// odbAddedIn: 1.1
|
||||
std::string displayName{};
|
||||
|
||||
NLOHMANN_DEFINE_TYPE_INTRUSIVE(Agent, id, role, persistent, displayName)
|
||||
|
||||
nlohmann::json toJson() const
|
||||
{
|
||||
return nlohmann::json(*this);
|
||||
}
|
||||
|
||||
static Agent fromJson(const nlohmann::json& j)
|
||||
{
|
||||
return j.get<Agent>();
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace models
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* AUTO-GENERATED BY CppBeSsot.
|
||||
* Direct edits are pointless: this file is regenerated.
|
||||
* Update the OpenAPI schema and/or CppBeSsot templates, then regenerate generated-* outputs.
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
|
||||
#include <nlohmann/json.hpp>
|
||||
#include <odb/core.hxx>
|
||||
|
||||
namespace models {
|
||||
|
||||
#pragma db model version(1, 1)
|
||||
#pragma db object table("GovernmentAddress")
|
||||
class GovernmentAddress
|
||||
{
|
||||
public:
|
||||
#pragma db id
|
||||
// odbAddedIn: 1.1
|
||||
std::string id{};
|
||||
// odbAddedIn: 1.1
|
||||
std::string addressLabel{};
|
||||
// odbAddedIn: 1.1
|
||||
std::string regionLookupKey{};
|
||||
|
||||
NLOHMANN_DEFINE_TYPE_INTRUSIVE(GovernmentAddress, id, addressLabel, regionLookupKey)
|
||||
|
||||
nlohmann::json toJson() const
|
||||
{
|
||||
return nlohmann::json(*this);
|
||||
}
|
||||
|
||||
static GovernmentAddress fromJson(const nlohmann::json& j)
|
||||
{
|
||||
return j.get<GovernmentAddress>();
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace models
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* AUTO-GENERATED BY CppBeSsot.
|
||||
* Direct edits are pointless: this file is regenerated.
|
||||
* Update the OpenAPI schema and/or CppBeSsot templates, then regenerate generated-* outputs.
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
|
||||
#include <nlohmann/json.hpp>
|
||||
#include <odb/core.hxx>
|
||||
|
||||
namespace models {
|
||||
|
||||
#pragma db model version(1, 1)
|
||||
#pragma db object table("TripAttemptResult")
|
||||
class TripAttemptResult
|
||||
{
|
||||
public:
|
||||
#pragma db id
|
||||
// odbAddedIn: 1.1
|
||||
std::string id{};
|
||||
// odbAddedIn: 1.1
|
||||
std::string result{};
|
||||
// odbAddedIn: 1.1
|
||||
std::string retryReason{};
|
||||
// odbAddedIn: 1.1
|
||||
std::string governmentSuspensionReason{};
|
||||
// odbAddedIn: 1.1
|
||||
std::string governmentTerminationReason{};
|
||||
// odbAddedIn: 1.1
|
||||
std::string complianceSuspensionReason{};
|
||||
// odbAddedIn: 1.1
|
||||
std::string complianceTerminationReason{};
|
||||
// odbAddedIn: 1.1
|
||||
std::string policySuspensionReason{};
|
||||
// odbAddedIn: 1.1
|
||||
std::string policyTerminationReason{};
|
||||
// odbAddedIn: 1.1
|
||||
std::string cancelationReason{};
|
||||
// odbAddedIn: 1.1
|
||||
std::string failureReason{};
|
||||
// odbAddedIn: 1.1
|
||||
std::string details{};
|
||||
|
||||
NLOHMANN_DEFINE_TYPE_INTRUSIVE(TripAttemptResult, id, result, retryReason, governmentSuspensionReason, governmentTerminationReason, complianceSuspensionReason, complianceTerminationReason, policySuspensionReason, policyTerminationReason, cancelationReason, failureReason, details)
|
||||
|
||||
nlohmann::json toJson() const
|
||||
{
|
||||
return nlohmann::json(*this);
|
||||
}
|
||||
|
||||
static TripAttemptResult fromJson(const nlohmann::json& j)
|
||||
{
|
||||
return j.get<TripAttemptResult>();
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace models
|
||||
|
||||
11
db/test-schema-v1.1/generated-cpp-source/src/model/Agent.cpp
Normal file
11
db/test-schema-v1.1/generated-cpp-source/src/model/Agent.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
* AUTO-GENERATED BY CppBeSsot.
|
||||
* Direct edits are pointless: this file is regenerated.
|
||||
* Update the OpenAPI schema and/or CppBeSsot templates, then regenerate generated-* outputs.
|
||||
*/
|
||||
#include "cppbessot/model/Agent.h"
|
||||
|
||||
namespace models {
|
||||
// Nlohmann-based models are header-only for now.
|
||||
} // namespace models
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
* AUTO-GENERATED BY CppBeSsot.
|
||||
* Direct edits are pointless: this file is regenerated.
|
||||
* Update the OpenAPI schema and/or CppBeSsot templates, then regenerate generated-* outputs.
|
||||
*/
|
||||
#include "cppbessot/model/GovernmentAddress.h"
|
||||
|
||||
namespace models {
|
||||
// Nlohmann-based models are header-only for now.
|
||||
} // namespace models
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
* AUTO-GENERATED BY CppBeSsot.
|
||||
* Direct edits are pointless: this file is regenerated.
|
||||
* Update the OpenAPI schema and/or CppBeSsot templates, then regenerate generated-* outputs.
|
||||
*/
|
||||
#include "cppbessot/model/TripAttemptResult.h"
|
||||
|
||||
namespace models {
|
||||
// Nlohmann-based models are header-only for now.
|
||||
} // namespace models
|
||||
|
||||
Reference in New Issue
Block a user