added options: "index" and "index-one" for space tables e.g. [table_name "index-one"]

This commit is contained in:
Tomasz Sowa 2021-09-23 14:03:26 +02:00
parent b047a10e8d
commit d8692f6ed5
1 changed files with 10 additions and 0 deletions

View File

@ -1470,6 +1470,16 @@ void Generator<StreamType, is_pikotools_stream, is_autoescape_stream>::CallSpace
if( !IsTestingFunctionExistence() )
{
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);
}
}
}