Fixed nested call expressions order in sequence diagrams

This commit is contained in:
Bartek Kryza
2022-12-16 21:16:14 +01:00
parent 4f95f426f1
commit 35554a2ec0
6 changed files with 100 additions and 17 deletions

View File

@@ -6,23 +6,17 @@
namespace clanguml {
namespace t20029 {
using encoder_function_t = std::function<std::string(std::string &&)>;
std::string encode_b64(std::string &&content) { return std::move(content); }
template <typename T> class Encoder : public T {
public:
bool send(std::string &&msg)
{
auto encoded = encode(std::move(msg));
return T::send(std::move(encoded));
return T::send(std::move(encode(std::move(msg))));
}
protected:
std::string encode(std::string &&msg) { return encode_b64(std::move(msg)); }
private:
encoder_function_t f_;
};
template <typename T> class Retrier : public T {

View File

@@ -319,7 +319,7 @@ int main(int argc, char *argv[])
if (returnCode != 0)
return returnCode;
clanguml::util::setup_logging(debug_log);
clanguml::util::setup_logging(debug_log ? 3 : 1);
return session.run();
}