[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Placing structs in cell arrays
From: |
Muthiah Annamalai |
Subject: |
Re: Placing structs in cell arrays |
Date: |
Tue, 13 Feb 2007 09:00:06 -0600 |
On Mon, 2007-02-12 at 23:22 -0500, John Swensen wrote:
> I am having trouble placing a struct/Octave_map in a cell array in C++.
> Here is a snippet of my code.
>
> Matrix handleVec = args(0).matrix_value();
> Cell retval(num_handles);
> for( int i = 0 ; i < num_handles ; i++ )
> {
> handlePtr = handle::getHandle( (int)handleVec(i) );
> Octave_map retvalItem = handlePtr->generateStruct();
^^^^^^^^^^
Is that a octave_struct ? you want to be using? ov-struct.h
~ Muthiah