OdbDesign
OdbDesign ODB++ Parser - C++ library, gRPC/REST server, CLI, tests
 
Loading...
Searching...
No Matches
FileModelController.h
Go to the documentation of this file.
1#pragma once
2
4#include "App/IOdbServerApp.h"
5
6#include <memory>
7#include <optional>
8#include <string>
9
11{
12 class FileArchive;
13}
14
15namespace Odb::App::Server
16{
18 {
19 public:
21 //virtual ~FileModelController() = default;
22
23 void register_routes() override;
24
25 private:
26 // Fetches the FileArchive for a design, translating failures into HTTP
27 // responses: corrupt/unloadable archive (DesignCache::LoadFileArchive
28 // throws) -> engaged optional holding INTERNAL/500; design not found ->
29 // engaged optional holding NOT_FOUND/404. On success the optional is
30 // disengaged and pFileArchive is populated.
31 std::optional<crow::response> TryGetFileArchive(
32 const std::string& designName,
33 std::shared_ptr<Odb::Lib::FileModel::Design::FileArchive>& pFileArchive) const;
34 crow::response filemodels_get_route_handler(const std::string& designName, const crow::request& req);
35 crow::response filemodels_post_route_handler(const std::string& designName, const crow::request& req);
36 crow::response filemodels_list_route_handler(const crow::request& req);
37
38 crow::response steps_route_handler(const std::string& designName, const std::string& stepName, const crow::request& req);
39 crow::response steps_edadata_route_handler(const std::string& designName, const std::string& stepName, const crow::request& req);
40 crow::response steps_attrlist_route_handler(const std::string& designName, const std::string& stepName, const crow::request& req);
41 crow::response steps_profile_route_handler(const std::string& designName, const std::string& stepName, const crow::request& req);
42 crow::response steps_stephdr_route_handler(const std::string& designName, const std::string& stepName, const crow::request& req);
43 crow::response steps_netlists_route_handler(const std::string& designName, const std::string& stepName, const std::string& netlistName, const crow::request& req);
44 crow::response steps_netlists_list_route_handler(const std::string& designName, const std::string& stepName, const crow::request& req);
45 crow::response steps_list_route_handler(const std::string& designName, const crow::request& req);
46
47 crow::response steps_layers_route_handler(const std::string& designName, const std::string& stepName, const std::string& layerName, const crow::request& req);
48 crow::response steps_layers_components_route_handler(const std::string& designName, const std::string& stepName, const std::string& layerName, const crow::request& req);
49 crow::response steps_layers_features_route_handler(const std::string& designName, const std::string& stepName, const std::string& layerName, const crow::request& req);
50 crow::response steps_layers_attrlist_route_handler(const std::string& designName, const std::string& stepName, const std::string& layerName, const crow::request& req);
51 crow::response steps_layers_list_route_handler(const std::string& designName, const std::string& stepName, const crow::request& req);
52 crow::response steps_diagnostics_symbol_units_route_handler(const std::string& designName, const std::string& stepName, const crow::request& req);
53
54 crow::response symbols_route_handler(const std::string& designName, const std::string& symbolName, const crow::request& req);
55 crow::response symbols_features_route_handler(const std::string& designName, const std::string& symbolName, const crow::request& req);
56 crow::response symbols_attrlist_route_handler(const std::string& designName, const std::string& symbolName, const crow::request& req);
57 crow::response symbols_list_route_handler(const std::string& designName, const crow::request& req);
58
59 crow::response misc_attrlist_route_handler(const std::string& designName, const crow::request& req);
60 crow::response matrix_matrix_route_handler(const std::string& designName, const crow::request& req);
61 crow::response misc_info_route_handler(const std::string& designName, const crow::request& req);
62 crow::response fonts_standard_route_handler(const std::string& designName, const crow::request& req);
63
64 };
65}