Exemple #1
0
    bool EatPage(plRegistryPageNode* page)
    {
        const plPageInfo& info = page->GetPageInfo();

        plFileName fileName = plFileName::Join(fOutputDir,
                plString::Format("%s_%s.csv", info.GetAge().c_str(), info.GetPage().c_str()));
        fStream.Open(fileName, "wt");

        page->LoadKeys();
        page->IterateKeys(this);

        fStream.Close();

        return true;
    }
Exemple #2
0
    bool EatPage(plRegistryPageNode* page)
    {
        const plPageInfo& info = page->GetPageInfo();

        char fileName[256];
        sprintf(fileName, "%s%s_%s.csv", fOutputDir, info.GetAge(), info.GetPage());
        fStream.Open(fileName, "wt");

        page->LoadKeys();
        page->IterateKeys(this);

        fStream.Close();

        return true;
    }
Exemple #3
0
    bool EatKey(const plKey& key)
    {
        plKeyImp* imp = (plKey)key;

        fStream.WriteString(imp->GetName());
        fStream.WriteString(",");

        fStream.WriteString(plFactory::GetNameOfClass(imp->GetUoid().GetClassType()));
        fStream.WriteString(",");

        char buf[30];
        sprintf(buf, "%u", imp->GetDataLen());
        fStream.WriteString(buf);
        fStream.WriteString("\n");

        return true;
    }