本文整理汇总了C++中DumpContext::increaseIndent方法的典型用法代码示例。如果您正苦于以下问题:C++ DumpContext::increaseIndent方法的具体用法?C++ DumpContext::increaseIndent怎么用?C++ DumpContext::increaseIndent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DumpContext
的用法示例。
在下文中一共展示了DumpContext::increaseIndent方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
int PortReportSMode1394::dump(DumpContext& dc) { // throws IOException
dc.indent();
dc.getPs().print("PortReportSMode1394\n");
dc.increaseIndent();
int retVal= 0;
// write totalNumberOfNodes
dc.indent();
dc.getPs().print("totalNumberOfNodes=");
dc.getPs().println((long)totalNumberOfNodes);
// write bf1
{
dc.indent();
dc.getPs().print("reserved: ");
dc.getPs().printlnBin(getReserved(),3);
dc.indent();
dc.getPs().print("loopStatus: ");
dc.getPs().printlnBin(getLoopStatus(),1);
dc.indent();
dc.getPs().print("rootStatus: ");
dc.getPs().printlnBin(getRootStatus(),1);
dc.indent();
dc.getPs().print("cycleMasterStatus: ");
dc.getPs().printlnBin(getCycleMasterStatus(),1);
dc.indent();
dc.getPs().print("port_1ConnectionStatus: ");
dc.getPs().printlnBin(getPort_1ConnectionStatus(),1);
dc.indent();
dc.getPs().print("port_2ConnectionStatus: ");
dc.getPs().printlnBin(getPort_2ConnectionStatus(),1);
}
dc.decreaseIndent();
return retVal;
}
示例2: dump
int ElementaryStreamInfo::dump(DumpContext& dc) { // throws IOException
dc.indent();
dc.getPs().print("ElementaryStreamInfo\n");
dc.increaseIndent();
int retVal= 0;
// write streamType
dc.indent();
dc.getPs().print("streamType=");
dc.getPs().println((long)streamType);
// write bf1
{
dc.indent();
dc.getPs().print("reserved2: ");
dc.getPs().printlnBin(getReserved2(),3);
dc.indent();
dc.getPs().print("elementaryStreamInfoLength: ");
dc.getPs().printlnBin(getElementaryStreamInfoLength(),13);
}
// write caInfo
if ( caInfo != NULL ) {
dc.indent();
dc.getPs().println("caInfo") ;
retVal +=caInfo->dump(dc);
}
dc.decreaseIndent();
return retVal;
}
示例3: for
int network_information_table_section::subtable::dump(DumpContext& dc) { // throws IOException
dc.indent();
dc.getPs().print("subtable\n");
dc.increaseIndent();
int retVal= 0;
// write firstIndex
dc.indent();
dc.getPs().print("firstIndex=");
dc.getPs().println((long)firstIndex);
// write numberOfRecords
dc.indent();
dc.getPs().print("numberOfRecords=");
dc.getPs().println((long)numberOfRecords);
// write bf3
{
dc.indent();
dc.getPs().print("transmission_medium: ");
dc.getPs().printlnBin(getTransmission_medium(),4);
dc.indent();
dc.getPs().print("table_subtype: ");
dc.getPs().printlnBin(getTable_subtype(),4);
}
// write records
{ for (ArrayList_iterator(network_information_table_section::subtable::Record) it= records.getIterator() ; it.hasNext();) {
{
dc.indent();
dc.getPs().println("element");
retVal +=it.get()->dump(dc);
}
}
}
// write descriptor
if ( descriptor != NULL ) {
dc.indent();
dc.getPs().println("descriptor") ;
retVal +=descriptor->dump(dc);
}
dc.decreaseIndent();
return retVal;
}