예제 #1
0
파일: Views.cpp 프로젝트: Agilack/vle
View& Views::addFinishView(const std::string& name,
                           const std::string& output)
{
    if (isUsedOutput(output)) {
        throw utils::ArgError(fmt(
                _("Output '%1%' of view '%2%' is already used")) % output %
            name);
    }

    return add(View(name, View::FINISH, output));
}
예제 #2
0
파일: Views.cpp 프로젝트: Agilack/vle
View& Views::addTimedView(const std::string& name,
                          double timestep,
                          const std::string& output)
{
    if (isUsedOutput(output)) {
        throw utils::ArgError(fmt(
                _("Output '%1%' of view '%2%' is already used")) % output %
            name);
    }

    return add(View(name, View::TIMED, output, timestep));
}
예제 #3
0
View& Views::addEventView(const std::string& name,
                          View::Type type,
                          const std::string& output,
                          bool enable)
{
    if (isUsedOutput(output)) {
        throw utils::ArgError(
            (fmt(_("Output '%1%' of view '%2%' is already used")) % output %
             name).str());
    }

    return add(View(name, type, output, 0.0, enable));
}