summaryrefslogtreecommitdiff
path: root/indra/newview/rlvhelper.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/rlvhelper.h')
-rw-r--r--indra/newview/rlvhelper.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/indra/newview/rlvhelper.h b/indra/newview/rlvhelper.h
new file mode 100644
index 0000000000..89bdc709d5
--- /dev/null
+++ b/indra/newview/rlvhelper.h
@@ -0,0 +1,24 @@
+#pragma once
+
+#include "rlvdefines.h"
+
+// ============================================================================
+// Various helper classes/timers/functors
+//
+
+namespace Rlv
+{
+ struct CommandDbgOut
+ {
+ CommandDbgOut(const std::string& orig_cmd) : mOrigCmd(orig_cmd) {}
+ void add(std::string strCmd, ECmdRet eRet);
+ std::string get() const;
+ static std::string getDebugVerbFromReturnCode(ECmdRet eRet);
+ static std::string getReturnCodeString(ECmdRet eRet);
+ private:
+ std::string mOrigCmd;
+ std::map<ECmdRet, std::string> mCommandResults;
+ };
+}
+
+// ============================================================================