Go to the documentation of this file. 1 #ifndef CommandExecutionResult_spec_h
2 #define CommandExecutionResult_spec_h
4 #include "../CommandParamsSpec.h"
9 #include <shared_mutex>
11 using std::shared_mutex, std::shared_lock, std::unique_lock;
13 #define COMMAND_RESULT_COMMAND_ID_PREFIX "RESULT_"
19 CscCommandResultType
type;
20 const vector<const CscCommandDataTypeNodeMetadata *> nestedParams;
22 const string description;
38 CscCommandResultType getType()
const;
43 vector<const CscCommandDataTypeMetadata *> getAllObjectTypesMetadata()
const;
48 const string &getDescription()
const;
60 static map<string, const CscCommandResultMetadata *> theMap;
67 auto it = registerMap.find(commandId);
68 if (it != registerMap.end()) {
70 registerMap.erase(it);
72 registerMap[commandId] = metadata;
#define CSC_DLL_IMPORTEXPORT
Definition: os.h:31
static shared_recursive_mutex_t & instance()
The shared_recursive_mutex_t is relying on thread local storage, so there can only be 1 valid instanc...
Definition: shared_recursive_mutex.h:28
CommandResultsMetadataByIdMutex & commandResultsMetadataByIdMutex()
Definition: CommandResultSpec.h:55
Definition: CscCommandMetadataBuilder.h:26
map< string, const CscCommandResultMetadata * > & commandResultsMetadataById()
Definition: CommandResultSpec.h:59
const CscCommandResultMetadata * registerCommandResultMetadata(const string &commandId, const CscCommandResultMetadata *metadata)
Definition: CommandResultSpec.h:64
type
Generic JSON types used in JWTs.
Definition: jwt.h:1794
Implementation of a fast shared_recursive_mutex Thanks to https://github.com/KonanM/shared_recursive_...
Definition: shared_recursive_mutex.h:18