00001 00016 #ifndef _Q_Cli_h 00017 #define _Q_Cli_h 00018 00019 #include "./Settings.h" 00020 00021 #include <string> 00022 #include <ostream> 00023 00024 00026 namespace Cli 00027 { 00029 void render(std::string& cli, const Settings& settings); 00030 00033 void showDisabledSettingsInNextCliRender( void ); 00034 00036 void parse(Settings& settings, const std::string& cli); 00037 00039 static void base64Encode(const uint8_t* buffer, int size, char* string); 00040 00042 static void base64Decode(const char* string, uint8_t* buffer, int* size); 00043 }; 00044 00045 00049 std::ostream & operator<<(std::ostream &stream, const Settings& settings); 00050 00051 00055 std::istream & operator>>(std::istream &stream, Settings& settings); 00056 00057 00058 #endif