Esempio n. 1
0
_tstring rab::FileString( Path_t const& p )
{
#ifdef SCARAB_WCHAR_MODE
	return p.wstring();
#else
	return p.string();
#endif
}
Esempio n. 2
0
MetaFile::MetaFile( const Path_t& path )
{
    namespace fs = boost::filesystem;
    Path_t metapath;

    if( fs::is_directory(path) )
    {
        metapath = path / "obfs.sqlite";
        m_subpath = ".";
    }
    else
    {
        metapath = path.parent_path() / "obfs.sqlite";
        m_subpath = path.filename().string();
    }
    m_sql.open( soci::sqlite3, metapath.string() );
}