Skip to content

Commit

Permalink
Update ZWManager.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
bufferUnderrun committed Jan 6, 2016
1 parent 24399d5 commit 04fc09e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions dotnet/src/ZWManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,29 @@ bool ZWManager::GetValueListItems
return false;
}

//-----------------------------------------------------------------------------
// <ZWManager::GetValueListValues>
// Gets the list of values from a list value
//-----------------------------------------------------------------------------
bool ZWManager::GetValueListValues
(
ZWValueID^ id,
[Out] cli::array<int>^ %o_value
)
{
vector<int32> items;
if( Manager::Get()->GetValueListValues(id->CreateUnmanagedValueID(), &items ) )
{
o_value = gcnew cli::array<int>(items.size());
for( uint32 i=0; i<items.size(); ++i )
{
o_value[i] = items[i];
}
return true;
}
return false;
}

//-----------------------------------------------------------------------------
// <ZWManager::GetNeighbors>
// Gets the neighbors for a node
Expand Down

0 comments on commit 04fc09e

Please sign in to comment.