@ -344,71 +344,85 @@ return def;
void Space : : Add ( const wchar_t * name , bool value )
std : : wstring & Space : : Add ( const wchar_t * name , bool value )
{
if ( value )
Add( name , L " true " ) ;
return Add( name , L " true " ) ;
else
Add( name , L " false " ) ;
return Add( name , L " false " ) ;
}
void Space : : Add ( const std : : wstring & name , bool value )
std : : wstring & Space : : Add ( const std : : wstring & name , bool value )
{
Add( name . c_str ( ) , value ) ;
return Add( name . c_str ( ) , value ) ;
}
void Space : : Add ( const wchar_t * name , int value )
std : : wstring & Space : : Add ( const wchar_t * name , int value )
{
wchar_t value_str [ 50 ] ;
swprintf ( value_str , sizeof ( value_str ) / sizeof ( wchar_t ) , L " %d " , value ) ;
Add( name , value_str ) ;
return Add( name , value_str ) ;
}
void Space : : Add ( const std : : wstring & name , int value )
std : : wstring & Space : : Add ( const std : : wstring & name , int value )
{
Add( name . c_str ( ) , value ) ;
return Add( name . c_str ( ) , value ) ;
}
void Space : : Add ( const wchar_t * name , long value )
std : : wstring & Space : : Add ( const wchar_t * name , long value )
{
wchar_t value_str [ 50 ] ;
swprintf ( value_str , sizeof ( value_str ) / sizeof ( wchar_t ) , L " %ld " , value ) ;
Add( name , value_str ) ;
return Add( name , value_str ) ;
}
void Space : : Add ( const std : : wstring & name , long value )
std : : wstring & Space : : Add ( const std : : wstring & name , long value )
{
Add( name . c_str ( ) , value ) ;
return Add( name . c_str ( ) , value ) ;
}
void Space : : Add ( const wchar_t * name , const wchar_t * value )
std : : wstring & Space : : Add ( const wchar_t * name , const wchar_t * value )
{
tmp_name = name ;
table_single [ tmp_name ] = value ;
std : : wstring & val = table_single [ tmp_name ] ;
val = value ;
return val ;
}
void Space : : Add ( const wchar_t * name , const std : : wstring & value )
std : : wstring & Space : : Add ( const wchar_t * name , const std : : wstring & value )
{
tmp_name = name ;
table_single [ tmp_name ] = value ;
std : : wstring & val = table_single [ tmp_name ] ;
val = value ;
return val ;
}
void Space : : Add ( const std : : wstring & name , const std : : wstring & value )
std : : wstring & Space : : Add ( const std : : wstring & name , const std : : wstring & value )
{
table_single [ name ] = value ;
std : : wstring & val = table_single [ name ] ;
val = value ;
return val ;
}
Space & Space : : AddSpace ( const wchar_t * name )
{
spaces . push_back ( new Space ( ) ) ;