added options: "index" and "index-one" for space tables e.g. [table_name "index-one"]
This commit is contained in:
parent
b047a10e8d
commit
d8692f6ed5
|
@ -1470,6 +1470,16 @@ void Generator<StreamType, is_pikotools_stream, is_autoescape_stream>::CallSpace
|
||||||
if( !IsTestingFunctionExistence() )
|
if( !IsTestingFunctionExistence() )
|
||||||
{
|
{
|
||||||
DumpSpaceIfNeeded(parameters, out_stream, space);
|
DumpSpaceIfNeeded(parameters, out_stream, space);
|
||||||
|
|
||||||
|
if( HasParam(parameters, L"index") )
|
||||||
|
{
|
||||||
|
out_stream << space_wrapper.get_space_iterator_value(model_wrapper_space_table_index);
|
||||||
|
}
|
||||||
|
|
||||||
|
if( HasParam(parameters, L"index-one") )
|
||||||
|
{
|
||||||
|
out_stream << (space_wrapper.get_space_iterator_value(model_wrapper_space_table_index) + 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue