Exemple #1
0
returnValue VectorspaceElement::printToString(	char** string,
												const char* const name,
												PrintScheme printScheme,
												BooleanType allocateMemory
												) const
{
	char* startString = 0;
	char* endString = 0;
	uint width = 0;
	uint precision = 0;
	char* colSeparator = 0;
	char* rowSeparator = 0;

	returnValue returnvalue;
	returnvalue = getGlobalStringDefinitions( printScheme,&startString,&endString,
											  width,precision,&colSeparator,&rowSeparator );

	if ( returnvalue == SUCCESSFUL_RETURN )
	{
		returnvalue = printToString( string,name,startString,endString,width,precision,colSeparator,rowSeparator,allocateMemory );
	}

	if ( startString != 0 )   delete[] startString;
	if ( endString != 0 )     delete[] endString;
	if ( colSeparator != 0 )  delete[] colSeparator;
	if ( rowSeparator != 0 )  delete[] rowSeparator;

	return returnvalue;
}
Exemple #2
0
returnValue LogRecord::addItem(	const Expression& _name,
								PrintScheme _printScheme,
								const char* const _label
								)
{
	char* _startString = 0;
	char* _endString = 0;
	uint _width = 0;
	uint _precision = 0;
	char* _colSeparator = 0;
	char* _rowSeparator = 0;

	returnValue returnvalue;
	returnvalue = getGlobalStringDefinitions( _printScheme,&_startString,&_endString,
											  _width,_precision,&_colSeparator,&_rowSeparator );

	if ( returnvalue == SUCCESSFUL_RETURN )
	{
		returnvalue = addItem( _name,_label,_startString,_endString,_width,_precision,_colSeparator,_rowSeparator );
	}

	if ( _startString != 0 )   delete[] _startString;
	if ( _endString != 0 )     delete[] _endString;
	if ( _colSeparator != 0 )  delete[] _colSeparator;
	if ( _rowSeparator != 0 )  delete[] _rowSeparator;

	return returnvalue;
}