本文整理汇总了C++中TextStream::startGroup方法的典型用法代码示例。如果您正苦于以下问题:C++ TextStream::startGroup方法的具体用法?C++ TextStream::startGroup怎么用?C++ TextStream::startGroup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TextStream
的用法示例。
在下文中一共展示了TextStream::startGroup方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: description
CString ViewportConfiguration::description() const
{
TextStream ts;
ts.startGroup();
ts << "viewport-configuration " << (void*)this;
{
TextStream::GroupScope scope(ts);
ts << "viewport arguments";
ts << m_viewportArguments;
}
{
TextStream::GroupScope scope(ts);
ts << "configuration";
ts << m_configuration;
}
{
TextStream::GroupScope scope(ts);
ts << "default configuration";
ts << m_defaultConfiguration;
}
ts.dumpProperty("contentSize", m_contentSize);
ts.dumpProperty("minimumLayoutSize", m_minimumLayoutSize);
ts.dumpProperty("computed initial scale", initialScale());
ts.dumpProperty("computed minimum scale", minimumScale());
ts.dumpProperty("computed layout size", layoutSize());
ts.dumpProperty("ignoring horizontal scaling constraints", shouldIgnoreHorizontalScalingConstraints() ? "true" : "false");
ts.dumpProperty("ignoring vertical scaling constraints", shouldIgnoreVerticalScalingConstraints() ? "true" : "false");
ts.endGroup();
return ts.release().utf8();
}
示例2: dump
void DisplayList::dump(TextStream& ts) const
{
TextStream::GroupScope group(ts);
ts << "display list";
size_t numItems = m_list.size();
for (size_t i = 0; i < numItems; ++i) {
TextStream::GroupScope scope(ts);
ts << i << " " << m_list[i].get();
}
ts.startGroup();
ts << "size in bytes: " << sizeInBytes();
ts.endGroup();
}