Commit 518b7485 authored by SND\ussrhero_cp's avatar SND\ussrhero_cp Committed by Mikhail I. Izmestev

fixed name lost for variable

git-svn-id: https://kdlibcpp.svn.codeplex.com/svn@91258 9b283d60-5439-405e-af05-b73fd8c4d996
parent d8b656ef
......@@ -186,34 +186,34 @@ namespace kdlib {
///////////////////////////////////////////////////////////////////////////////
//TypedVarPtr getTypedVar( const TypeInfoPtr& typeInfo, const DataAccessorPtr &dataSource, const std::wstring& name = L"" )
//{
// //if ( typeInfo->isBase() )
// // return TypedVarPtr( new TypedVarBase( typeInfo, dataSource, name ) );
//
// //if ( typeInfo->isUserDefined() )
// // return TypedVarPtr( new TypedVarUdt( typeInfo, dataSource, name ) );
//
// //if ( typeInfo->isPointer() )
// // return TypedVarPtr( new TypedVarPointer( typeInfo, dataSource, name ) );
//
// //if ( typeInfo->isArray() )
// // return TypedVarPtr( new TypedVarArray( typeInfo, dataSource, name ) );
//
// //if ( typeInfo->isBitField() )
// // return TypedVarPtr( new TypedVarBitField( typeInfo, dataSource, name ) );
//
// //if ( typeInfo->isEnum() )
// // return TypedVarPtr( new TypedVarEnum( typeInfo, dataSource, name ) );
//
// //if ( typeInfo->isFunction() )
// // return TypedVarPtr( new TypedVarFunction( typeInfo, dataSource, name ) );
//
// //if (typeInfo->isVtbl() )
// // return TypedVarPtr( new TypedVarVtbl( typeInfo, dataSource, name ) );
//
// //NOT_IMPLEMENTED();
//}
TypedVarPtr getTypedVar( const TypeInfoPtr& typeInfo, const DataAccessorPtr &dataSource, const std::wstring& name = L"" )
{
if ( typeInfo->isBase() )
return TypedVarPtr( new TypedVarBase( typeInfo, dataSource, name ) );
if ( typeInfo->isUserDefined() )
return TypedVarPtr( new TypedVarUdt( typeInfo, dataSource, name ) );
if ( typeInfo->isPointer() )
return TypedVarPtr( new TypedVarPointer( typeInfo, dataSource, name ) );
if ( typeInfo->isArray() )
return TypedVarPtr( new TypedVarArray( typeInfo, dataSource, name ) );
if ( typeInfo->isBitField() )
return TypedVarPtr( new TypedVarBitField( typeInfo, dataSource, name ) );
if ( typeInfo->isEnum() )
return TypedVarPtr( new TypedVarEnum( typeInfo, dataSource, name ) );
if ( typeInfo->isFunction() )
return TypedVarPtr( new TypedVarFunction( typeInfo, dataSource, name ) );
if (typeInfo->isVtbl() )
return TypedVarPtr( new TypedVarVtbl( typeInfo, dataSource, name ) );
NOT_IMPLEMENTED();
}
///////////////////////////////////////////////////////////////////////////////
......@@ -230,9 +230,7 @@ TypedVarPtr loadTypedVar( SymbolPtr &symbol )
TypeInfoPtr varType = loadType( symbol );
return varType->getVar(getMemoryAccessor(offset,varType->getSize()));
// getTypedVar( varType, getMemoryAccessor(offset,varType->getSize()), ::getSymbolName(symbol) );
return getTypedVar( varType, getMemoryAccessor(offset,varType->getSize()), ::getSymbolName(symbol) );
}
NOT_IMPLEMENTED();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment