I want to know how proper way to convert/extract (i do not know the exact term) Any value which has TypeClass_SEQUENCE to Sequence of Any in C++.
For example:
Code: Select all
//UNO/C++
Any any_value;
any_value = any_type; // dummy: any_tipe is any type from anywhere
TypeClass type;
type = any_value.getValueTypeClass();
if(type == TypeClass_SEQUENCE)
{
Sequence < Any > seq_any;
if(any_value>>=seq_any)
{
//do something if extraction success..
//for example seq_any.getLength();
}
else
{
//the code stuck here.
//the extraction is failed!
}
}
Example:
Code: Select all
//UNO/C++
Any any_value;
any_value = any_string; //i know that this contain sequence of OUString
TypeClass type;
type = any_value.getValueTypeClass();
if(type == TypeClass_SEQUENCE)
{
Sequence < OUString > seq_string;
if(any_value>>=seq_string)
{
//success
}
else
{
//code never reach this part.
}
}
how i can identify what TypeClass is Any inside Sequence of Any which is Sequence of Any is an Any?
Thank you for your guidance..