示例#1
0
文件: flexdir.cpp 项目: jmu0/flexdir
void printFileStructure()
{
    w.loadFileStructure();
    w.getPoolSizes();
    ch.analyze();
    w.printFileStructure();
}
示例#2
0
文件: flexdir.cpp 项目: jmu0/flexdir
void repair()
{
    w.loadFileStructure();
    ch.analyze();
    if(ch.getErrorCount() > 0)
    {
        if(ch.repair(true)==0)
        {
            repair();
        }
    }
}
示例#3
0
文件: flexdir.cpp 项目: jmu0/flexdir
void printStatus()
{
    w.loadFileStructure();
    ch.analyze();
    int errors = ch.getErrorCount();
    cout << "Status: ";
    if (errors > 0)
    {
        cout << errors << " errors found, run flexdir -r to repair" << endl;
    }
    else
    {
        cout << "OK" << endl;
    }
}