Bug 4088 - Improved DataType_Handler
Summary: Improved DataType_Handler
Status: NEW
Alias: None
Product: DAnCE
Classification: Unclassified
Component: LocalityManager (show other bugs)
Version: 1.1.7
Hardware: All All
: P3 enhancement
Assignee: Jiang Wei
URL:
Depends on:
Blocks:
 
Reported: 2013-01-29 04:29 CST by Jiang Wei
Modified: 2013-01-30 20:39 CST (History)
0 users

See Also:


Attachments
handle tk_enum, tk_struct, tk_sequence and tk_enum (3.57 KB, patch)
2013-01-29 04:29 CST, Jiang Wei
Details
ccd handler unit test (10.40 KB, application/x-gzip)
2013-01-29 21:18 CST, Jiang Wei
Details
new test for ccd_handler (8.20 KB, application/x-gzip)
2013-01-30 20:39 CST, Jiang Wei
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiang Wei 2013-01-29 04:29:01 CST
Created attachment 1448 [details]
handle tk_enum, tk_struct, tk_sequence and tk_enum

Repository Manager cann't handle tk_enum, tk_struct, tk_sequence, tk_enum.

The following two files seem to be useless.
* DAnCE/tools/Config_Handlers/DynAny_Handler/DataType_Handler.cpp
* DAnCE/tools/Config_Handlers/DynAny_Handler/DataType_Handler.h
Comment 1 Johnny Willemsen 2013-01-29 08:01:06 CST
Also for this one, any test extensions that tests this?
Comment 2 Jiang Wei 2013-01-29 21:18:12 CST
Created attachment 1450 [details]
ccd handler unit test

$ tao_idl3_to_ccd test.idl
processing test.idl
$ for ccd in *.ccd; do echo -e "\ntesting $ccd ..."; ./test -i $ccd; done 

testing Foo.ccd ...
Instance document import succeeded.

testing FooUnion.ccd ...
Parse Error : open FooUnion.ccd faild

testing FooValue.ccd ...
terminate called after throwing an instance of 'int'
Aborted (core dumped)

testing FooValueBox.ccd ...
Parse Error : open FooValueBox.ccd faild
Comment 3 Jiang Wei 2013-01-30 20:39:59 CST
Created attachment 1451 [details]
new test for ccd_handler

for ccd in *.ccd; do ./test -i $ccd; done
"FooAliasSequence.ccd" import succeeded.
"FooEnum.ccd" import succeeded.
"FooStruct.ccd" import succeeded.
"FooUnion.ccd" Parse Error: create_dom failed.
"FooValueBox.ccd" Config Error : Unsupport data type.
"FooValue.ccd" Config Error : Unsupport data type.