示例#1
0
文件: Config.cpp 项目: xdv/divvyd
beast::File Config::getConfigDir () const
{
    beast::String const s (CONFIG_FILE.native().c_str ());
    if (s.isNotEmpty ())
        return beast::File (s).getParentDirectory ();
    return beast::File::nonexistent ();
}
示例#2
0
文件: Config.cpp 项目: xdv/divvyd
beast::File Config::getValidatorsFile () const
{
    beast::String const s (VALIDATORS_FILE.native().c_str());
    if (s.isNotEmpty() && getConfigDir() != beast::File::nonexistent())
        return getConfigDir().getChildFile (s);
    return beast::File::nonexistent ();
}
示例#3
0
beast::File Config::getDatabaseDir () const
{
    beast::String const s (DATA_DIR.native().c_str());
    if (s.isNotEmpty ())
        return beast::File (s);
    return beast::File::nonexistent ();
}
示例#4
0
文件: Config.cpp 项目: xdv/divvyd
beast::File Config::getModuleDatabasePath () const
{
    boost::filesystem::path dbPath (legacy ("database_path"));

    beast::String const s (dbPath.native ().c_str ());
    if (s.isNotEmpty ())
        return beast::File (s);
    return beast::File::nonexistent ();
}