本文整理汇总了C++中Progress::Value方法的典型用法代码示例。如果您正苦于以下问题:C++ Progress::Value方法的具体用法?C++ Progress::Value怎么用?C++ Progress::Value使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Progress
的用法示例。
在下文中一共展示了Progress::Value方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ConvertItem
bool ConvertItem(ReaderItem *Reader, WriterItem *Writer)
{
bool Status = false;
if (Reader && Writer)
{
// convert object across
if (Prog)
{
Prog->Value(Prog->Value() + Reader->Len);
LgiYield();
}
Converted++;
Status = true;
// do children
for (StorageItem *ri = Reader->Store->GetChild(); ri;
ri = ri->GetNext())
{
ReaderItem *Reader1 = new ReaderItem(ri);
if (Reader1 &&
Reader1->Len > 0)
{
WriterItem *Writer2 = new WriterItem(Reader1);
StorageItem *wi = Writer->Store->CreateSub(Writer2);
if (Writer2 && wi)
{
wi->Object = Writer2;
Writer2->Store = wi;
Status &= ConvertItem(Reader1, Writer2);
Writer2->Store->Object = 0;
Writer2->Store = 0;
DeleteObj(Writer2);
}
Reader1->Store->Object = 0;
Reader1->Store = 0;
DeleteObj(Reader1);
}
}
}
return Status;
}