Ejemplo n.º 1
0
bool MyListView::Export (TextWriter &w)
{
	BListItem* ptr;
	MyItem* item;
	int32 id = 0;
	
	if (w.Err() != brOK) return false;
	while ((ptr = ItemAt(id++)) != NULL) {
		item = (MyItem *)ptr;
		w.WriteString(item->LabelStr());
		w.WriteString("\t");
		w.WriteString(item->ContentStr());
		w.WriteLn();
	}
	return true;
}
Ejemplo n.º 2
0
void PrintTypeForValue(ParsingDefinitionType* _type, ParsingSymbol* _scope, ParsingSymbolManager* _manager, const WString& _codeClassPrefix, TextWriter& _writer)
{
	List<Ptr<ParsingError>> errors;
	ParsingSymbol* type=FindType(_type, _manager, _scope, errors);
	if(type->GetType()==ParsingSymbol::EnumType)
	{
		PrintType(_type, _scope, _manager, _codeClassPrefix, _writer);
	}
	else if(type->GetType()==ParsingSymbol::ClassType)
	{
		_writer.WriteString(L"vl::Ptr<");
		PrintType(_type, _scope, _manager, _codeClassPrefix, _writer);
		_writer.WriteString(L">");
	}
	else
	{
		PrintType(_type, _scope, _manager, _codeClassPrefix, _writer);
	}
}