File indexing completed on 2024-04-28 05:48:20

0001 #pragma once
0002 
0003 #include <QHash>
0004 
0005 namespace CompilerExplorer
0006 {
0007 enum Endpoints {
0008     Languages,
0009     Compilers,
0010     CompilerCompile,
0011 };
0012 
0013 static const QHash<Endpoints, QString> endpointsToString = {
0014     {Endpoints::Languages, QStringLiteral("languages")},
0015     {Endpoints::Compilers, QStringLiteral("compilers")},
0016     {Endpoints::CompilerCompile, QStringLiteral("compiler")},
0017 };
0018 
0019 static const QHash<QString, Endpoints> stringToEndpoint = {
0020     {QStringLiteral("languages"), Endpoints::Languages},
0021     {QStringLiteral("compilers"), Endpoints::Compilers},
0022     {QStringLiteral("compiler"), Endpoints::CompilerCompile},
0023 };
0024 
0025 }