Function fullname

Synopsis

#include <lib/inc/drogon/drogon_test.h>

std::string fullname() const

Description

No description yet.

Source

Lines 378-390 in lib/inc/drogon/drogon_test.h.

std::string fullname() const
{
    std::string result;
    auto curr = this;
    while (curr != nullptr)
    {
        result = curr->name() + result;
        if (curr->parent_ != nullptr)
            result = "." + result;
        curr = curr->parent_.get();
    }
    return result;
}





Add Discussion as Guest

Log in