Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New API and fixes for TypeObject generation (#119)
* Changes to run typeobject tests (#103) * Refs #19115: include method to check if type is boolean Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19115: accesors to primitive types and enum types Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19115: add scoped name to annotation declarations Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19115: add API to check verbatim annotation. Sanity check to ensure that given enumeration value is valid Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19115: remove quotes from annotation value Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19115: discriminate builtin annotations Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19115: API for max and min annotation values (@range) Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19115: expose scoped name in Annotation API Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19115: include XTypes v1.3 builtin annotations and fix IDL v4.2 builtin annotations Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19115: throw exception if annotation is not previously defined Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19115: remove isIsEnumType defined twice (after rebase) Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19115: try_construct implementation Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19115: type system only supports single inheritance Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19115: check autoid annotation API Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Added TypeObject tests flag. Signed-off-by: adriancampo <adriancampo@eprosima.com> * change run() method to work with different types of tests. Signed-off-by: adriancampo <adriancampo@eprosima.com> * Refs #19595: apply review suggestions Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19595: revert changes: -typeobject option will be used to generate legacy TypeObject code Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19595: check autoid annotation API Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19595: try_construct annotation implementation Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19595: add API to check @id and @hashid builtin annotations Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19595: API to get number of members Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19595: add getBitBound API to enum types Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19595: add API to get number of annotation parameters Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19595: fix merge conflicts Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19595: add API to check if an annotation is builtin Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19595: add API to check number of applicable labels Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19595: fix merge conflicts Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19595: refactor array_type Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19595: add array API to check bound sequence size Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19595: fix after rebase Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19595: remove non-necessary template attribute Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19595: include API to get number of annotation parameters Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19595: apply review suggestion: use new scopedname strategy Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19595: apply review suggestion Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> --------- Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> Signed-off-by: adriancampo <adriancampo@eprosima.com> Co-authored-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Fix API for TypeObject code generation (#110) * Refs #19595: code style Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19595: return annotation default value Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19595: add Alias API for container types aliased Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19595: fix typos in primitive API Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19595: explictly override Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> --------- Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19906: fix TypeCode::isAnnotationAutoidHash function Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19906: return correct TypeIdentifier kind Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19906: return correct type identifier Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19906: unbounded collections use small TypeIdentifier Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19906: fixes after rebase Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19906: return correct TypeIdentifier for arrays Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #19906: return correct TypeIdentifier for maps Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #20129: non applied extensibility and try_construct annotations Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #20129: get main project API (generate TypeObject tests only for the main project) Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #20129: fix Annotation Autoid hash return value Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #20129: add getFirstMember API Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #20129: fix bitset holder type Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #20129: fix collection TypeIdentifier Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #20129: recursive types fail generating TypeObject Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #20129: API to check if contained members are forwarded Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #20129: fix bitset bitfields Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #20129: use variables instead of hardcoded strings Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #20129: fixes after rebase Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> * Refs #20129: apply review suggestions Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> --------- Signed-off-by: JLBuenoLopez-eProsima <joseluisbueno@eprosima.com> Signed-off-by: adriancampo <adriancampo@eprosima.com> Co-authored-by: Adrian del Campo <107918259+adriancampo@users.noreply.github.com>
- Loading branch information