Function enableMasquerading

Synopsis

#include <orm_lib/inc/drogon/orm/RestfulController.h>

void enableMasquerading(const std::vector< std::string > &pMasqueradingVector)

Description

No description yet.

Source

Lines 35-44 in orm_lib/inc/drogon/orm/RestfulController.h.

void enableMasquerading(const std::vector<std::string> &pMasqueradingVector)
{
    masquerading_ = true;
    masqueradingVector_ = pMasqueradingVector;
    for (size_t i = 0; i < masqueradingVector_.size(); ++i)
    {
        masqueradingMap_.insert(
            std::pair<std::string, size_t>{masqueradingVector_[i], i});
    }
}





Add Discussion as Guest

Log in