Update of /cvsroot/ccmtools/ccmtools/test/IDLParser/component In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv449/test/IDLParser/component Added Files: ComponentSimple.idl ComponentException.idl HomeFactoryBasicTypes.idl ComponentAttributeUserTypes.idl ComponentReceptacle.idl HomeFactoryException.idl HomeInheritance.idl ComponentAttributeExceptions.idl ComponentFacet.idl ComponentReadonlyAttributes.idl HomeAttributeExceptions.idl .cvsignore ComponentSupportedInterface.idl ComponentInheritance.idl ComponentFacetReceptacle.idl ComponentEmits.idl HomePrimaryKey.idl HomeSupportedInterface.idl HomeException.idl HomeTypes.idl ComponentConsumes.idl HomeFinderMethods.idl HomeSimple.idl HomeAttributeUserTypes.idl ComponentPublishes.idl ComponentAttributeBasicTypes.idl Makefile HomeAttributeBasicTypes.idl HomeFactoryUserTypes.idl Log Message: Refactored test directory --- NEW FILE: HomeAttributeExceptions.idl --- #ifndef __HOME_ATTRIBUTE_EXCEPTIONS__IDL__ #define __HOME_ATTRIBUTE_EXCEPTIONS__IDL__ #include <component/ComponentSimple.idl> #include<exception/ExceptionEmpty.idl> #include<exception/ExceptionBasicType.idl> #include<exception/ExceptionUserType.idl> #include<struct/Person.idl> home HomeAttributeExceptions manages ComponentSimple { attribute long longValue getraises(ExceptionEmpty) setraises(ExceptionBasicType, ExceptionUserType); attribute Person structValue getraises(ExceptionEmpty) setraises(ExceptionBasicType); }; #endif // __HOME_ATTRIBUTE_EXCEPTIONS__IDL__ --- NEW FILE: ComponentEmits.idl --- #ifndef __COMPONENT_EMITS__IDL__ #define __COMPONENT_EMITS__IDL__ #include <events/EventtypeTest.idl> component ComponentEmits { emits Login login; }; home ComponentEmitsHome manages ComponentEmits { }; #endif // __COMPONENT_EMITS__IDL__ --- NEW FILE: Makefile --- INCLUDE= -I../ all: idl3 idl3: component home component: ccmparser ${INCLUDE} ComponentSimple.idl ccmparser ${INCLUDE} ComponentAttributeBasicTypes.idl ccmparser ${INCLUDE} ComponentAttributeUserTypes.idl ccmparser ${INCLUDE} ComponentAttributeExceptions.idl ccmparser ${INCLUDE} ComponentSupportedInterface.idl ccmparser ${INCLUDE} ComponentFacet.idl ccmparser ${INCLUDE} ComponentReceptacle.idl ccmparser ${INCLUDE} ComponentInheritance.idl home: ccmparser ${INCLUDE} HomeAttributeBasicTypes.idl ccmparser ${INCLUDE} HomeAttributeUserTypes.idl ccmparser ${INCLUDE} HomeAttributeExceptions.idl ccmparser ${INCLUDE} HomeFactoryBasicTypes.idl ccmparser ${INCLUDE} HomeFactoryUserTypes.idl ccmparser ${INCLUDE} HomeFactoryException.idl ccmparser ${INCLUDE} HomeFinderMethods.idl ccmparser ${INCLUDE} HomeSupportedInterface.idl ccmparser ${INCLUDE} HomeInheritance.idl --- NEW FILE: HomeInheritance.idl --- #ifndef __HOME_INHERITANCE__IDL__ #define __HOME_INHERITANCE__IDL__ component SimpleComponent { attribute string Id; }; home SuperHome manages SimpleComponent { }; home SubHome : SuperHome manages SimpleComponent { }; #endif // __HOME_INHERITANCE__IDL__ --- NEW FILE: HomeFactoryUserTypes.idl --- #ifndef __HOME_FACTORY_USER_TYPES__IDL__ #define __HOME_FACTORY_USER_TYPES__IDL__ #include <typedef/BasicTypeTypedef.idl> #include <enum/Color.idl> #include <struct/Address.idl> #include <array/BasicTypeArray.idl> #include <sequence/BasicTypeSequence.idl> #include <interface/InterfaceBasicTypeAttributes.idl> component HomeFactoryUserTypes { attribute string Id; }; home HomeFactoryUserTypesHome manages HomeFactoryUserTypes { factory createWithTypedef(in LongType id); factory createWithEnum(in Color id); factory createWithStruct(in Address id); factory createWithArray(in LongArray id); factory createWithSequence(in LongSeq id); factory createWithInterface(in InterfaceBasicTypeAttributes id); }; #endif // __HOME_FACTORY_USER_TYPES__IDL__ --- NEW FILE: HomeSupportedInterface.idl --- #ifndef __HOME_SUPPORTED_INTERFACE__IDL__ #define __HOME_SUPPORTED_INTERFACE__IDL__ #include <interface/InterfaceBasicTypeAttributes.idl> #include <interface/InterfaceUserTypeOperation.idl> component HomeSupportedInterface { attribute string Id; }; home HomeSupportedInterfaceHome supports InterfaceBasicTypeAttributes, InterfaceUserTypeOperation manages HomeSupportedInterface { }; #endif // __HOME_SUPPORTED_INTERFACE__IDL__ --- NEW FILE: HomeException.idl --- #ifndef __HOME_EXCEPTION__IDL__ #define __HOME_EXCEPTION__IDL__ #include <typedef/BasicTypeTypedef.idl> #include <enum/Color.idl> #include <struct/Address.idl> #include <array/BasicTypeArray.idl> #include <sequence/BasicTypeSequence.idl> component HomeException { }; home HomeExceptionHome manages HomeException { exception ExceptionEmpty { }; exception ExceptionBasicType { short shortMember; long longMember; long long lLongMember; unsigned short uShortMember; unsigned long uLongMember; }; exception ExceptionUserType { LongType typedefMember; Color enumMember; Address structMember; LongArray arrayMember; LongSeq sequencemember; }; void foo() raises (ExceptionEmpty, ExceptionBasicType, ExceptionUserType); }; #endif // __HOME_EXCEPTION__IDL__ --- NEW FILE: ComponentAttributeExceptions.idl --- #ifndef __COMPONENT_ATTRIBUTE_EXCEPTIONS__IDL__ #define __COMPONENT_ATTRIBUTE_EXCEPTIONS__IDL__ #include<exception/ExceptionEmpty.idl> #include<exception/ExceptionBasicType.idl> #include<exception/ExceptionUserType.idl> #include<struct/Person.idl> component ComponentAttributeExceptions { attribute long longValue getRaises(ExceptionEmpty) setRaises(ExceptionBasicType, ExceptionUserType); attribute Person structValue getRaises(ExceptionEmpty) setRaises(ExceptionBasicType); }; #endif // __COMPONENT_ATTRIBUTE_EXCEPTIONS__IDL__ --- NEW FILE: ComponentSupportedInterface.idl --- #ifndef __COMPONENT_SUPPORTED_INTERFACE__IDL__ #define __COMPONENT_SUPPORTED_INTERFACE__IDL__ #include <interface/InterfaceBasicTypeAttributes.idl> #include <interface/InterfaceUserTypeOperation.idl> component ComponentSupportedInterface supports InterfaceBasicTypeAttributes, InterfaceUserTypeOperation { }; home ComponentSupportedInterfaceHome manages ComponentSupportedInterface { }; #endif // __COMPONENT_SUPPORTED_INTERFACE__IDL__ --- NEW FILE: ComponentReceptacle.idl --- #ifndef __COMPONENT_RECEPTACLE__IDL__ #define __COMPONENT_RECEPTACLE__IDL__ #include <interface/InterfaceBasicTypeAttributes.idl> #include <interface/InterfaceUserTypeOperation.idl> component ComponentReceptacle { uses InterfaceBasicTypeAttributes basicTypes; uses multiple InterfaceUserTypeOperation userTypes; }; home ComponentReceptacleHome manages ComponentReceptacle { }; #endif // __COMPONENT_RECEPTACLE__IDL__ --- NEW FILE: ComponentException.idl --- #ifndef __COMPONENT_EXCEPTION__IDL__ #define __COMPONENT_EXCEPTION__IDL__ #include <typedef/BasicTypeTypedef.idl> #include <enum/Color.idl> #include <struct/Address.idl> #include <array/BasicTypeArray.idl> #include <sequence/BasicTypeSequence.idl> component ComponentException { exception ExceptionEmpty { }; exception ExceptionBasicType { short shortMember; long longMember; long long lLongMember; unsigned short uShortMember; unsigned long uLongMember; }; exception ExceptionUserType { LongType typedefMember; Color enumMember; Address structMember; LongArray arrayMember; LongSeq sequencemember; }; void foo() raises (ExceptionEmpty, ExceptionBasicType, ExceptionUserType); }; home ComponentExceptionHome manages ComponentException { }; #endif // __COMPONENT_EXCEPTION__IDL__ --- NEW FILE: ComponentReadonlyAttributes.idl --- #ifndef __COMPONENT_READONLY_ATTRIBUTE__IDL__ #define __COMPONENT_READONLY_ATTRIBUTE__IDL__ component ComponentAttributeBasicTypes { readonly attribute short shortValue; }; #endif // __COMPONENT_READONLY_ATTRIBUTE__IDL__ --- NEW FILE: .cvsignore --- xxx t.idl x.idl --- NEW FILE: ComponentFacetReceptacle.idl --- #ifndef __COMPONENT_FACET_AND_RECEPTACLE_IDL__ #define __COMPONENT_FACET_AND_RECEPTACLE_IDL__ #include <interface/InterfaceBasicTypeAttributes.idl> #include <interface/InterfaceUserTypeOperation.idl> component ComponentFacet { provides InterfaceBasicTypeAttributes basicTypes; provides InterfaceUserTypeOperation userTypes; }; home ComponentFacetHome manages ComponentFacet { }; /** * Here we use the same names for receptacles as we have * used in the other component for receptacles. */ component ComponentReceptacle { uses InterfaceBasicTypeAttributes basicTypes; uses InterfaceUserTypeOperation userTypes; }; home ComponentReceptacleHome manages ComponentReceptacle { }; #endif // __COMPONENT_FACET_AND_RECEPTACLE__IDL__ --- NEW FILE: HomeAttributeUserTypes.idl --- #ifndef __HOME_ATTRIBUTE_USER_TYPES__IDL__ #define __HOME_ATTRIBUTE_USER_TYPES__IDL__ #include <component/ComponentSimple.idl> #include <typedef/BasicTypeTypedef.idl> #include <enum/Color.idl> #include <struct/Address.idl> #include <array/BasicTypeArray.idl> #include <sequence/BasicTypeSequence.idl> #include <interface/InterfaceBasicTypeAttributes.idl> home HomeAttributeUserTypes manages ComponentSimple { attribute LongType typedefValue; attribute Color enumValue; attribute Address structValue; attribute LongArray arrayValue; attribute LongSeq sequenceValue; attribute InterfaceBasicTypeAttributes interfaceValue; }; #endif // __HOME_ATTRIBUTE_USER_TYPES__IDL__ --- NEW FILE: HomeAttributeBasicTypes.idl --- #ifndef __HOME_ATTRIBUTE_BASIC_TYPES__IDL__ #define __HOME_ATTRIBUTE_BASIC_TYPES__IDL__ #include <component/ComponentSimple.idl> home HomeAttributeBasicTypes manages ComponentSimple { attribute short shortValue; attribute long longValue; attribute long long lLongValue; attribute unsigned short uShortValue; attribute unsigned long uLongValue; // attribute unsigned long long uLLongValue; attribute float floatValue; attribute double doubleValue; attribute long double lDoubleValue; attribute char charValue; attribute wchar wcharValue; attribute string stringValue; attribute string<5> bStringValue; attribute wstring wstringValue; attribute wstring<5> bWstringValue; attribute boolean booleanValue; attribute octet octetValue; attribute any anyValue; attribute Object objectValue; // attribute fixed<9,2> fixedValue; !!! }; #endif // __HOME_ATTRIBUTES_BASIC_TYPES__IDL__ --- NEW FILE: ComponentAttributeUserTypes.idl --- #ifndef __COMPONENT_ATTRIBUTE_USER_TYPES__IDL__ #define __COMPONENT_ATTRIBUTE_USER_TYPES__IDL__ #include <typedef/BasicTypeTypedef.idl> #include <enum/Color.idl> #include <struct/Address.idl> #include <array/BasicTypeArray.idl> #include <sequence/BasicTypeSequence.idl> #include <interface/InterfaceBasicTypeAttributes.idl> component ComponentAttributeUserTypes { attribute LongType typedefValue; attribute Color enumValue; attribute Address structValue; attribute LongArray arrayValue; attribute LongSeq sequenceValue; attribute InterfaceBasicTypeAttributes interfaceValue; }; #endif // __COMPONENT_ATTRIBUTE_USER_TYPES__IDL__ --- NEW FILE: HomeSimple.idl --- #ifndef __HOME_SIMPLE__IDL__ #define __HOME_SIMPLE__IDL__ component ComponentSimple { attribute long Id; }; home HomeSimple manages ComponentSimple { }; #endif // __HOME_SIMPLE__IDL__ --- NEW FILE: ComponentAttributeBasicTypes.idl --- #ifndef __COMPONENT_ATTRIBUTE_BASIC_TYPE__IDL__ #define __COMPONENT_ATTRIBUTE_BASIC_TYPE__IDL__ component ComponentAttributeBasicTypes { attribute short shortValue; attribute long longValue; attribute long long lLongValue; attribute unsigned short uShortValue; attribute unsigned long uLongValue; // attribute unsigned long long uLLongValue; attribute float floatValue; attribute double doubleValue; attribute long double lDoubleValue; attribute char charValue; attribute wchar wcharValue; attribute string stringValue; attribute string<5> bStringValue; attribute wstring wstringValue; attribute wstring<5> bWstringValue; attribute boolean booleanValue; attribute octet octetValue; attribute any anyValue; attribute Object objectValue; // attribute fixed<9,2> fixedValue; !!! }; #endif // __COMPONENT_ATTRIBUTE_BASIC_TYPE__IDL__ --- NEW FILE: ComponentPublishes.idl --- #ifndef __COMPONENT_PUBLISHES__IDL__ #define __COMPONENT_PUBLISHES__IDL__ #include <events/EventtypeTest.idl> component ComponentPublishes { publishes Login login; }; home ComponentPublishesHome manages ComponentPublishes { }; #endif // __COMPONENT_PUBLISHES__IDL__ --- NEW FILE: HomeFinderMethods.idl --- #ifndef __HOME_FINDER_METHODS__IDL__ #define __HOME_FINDER_METHODS__IDL__ exception SearchError { }; component HomeFinderMethods { attribute string Id; }; home HomeFinderMethodsHome manages HomeFinderMethods { finder findComponent(in string name) raises(SearchError); }; #endif // __HOME_FINDER_METHODS__IDL__ --- NEW FILE: HomeFactoryBasicTypes.idl --- #ifndef __HOME_FACTORY_BASIC_TYPES__IDL__ #define __HOME_FACTORY_BASIC_TYPES__IDL__ component HomeFactoryBasicTypes { attribute string Id; }; home HomeFactoryBasicTypesHome manages HomeFactoryBasicTypes { factory createWithShort(in short id); factory createWithLong(in long id); factory createWithLongLong(in long long id); factory createWithUShort(in unsigned short id); factory createWithULong(in unsigned long id); //factory createWithULongLong(in unsigned long long id); factory createWithFloat(in float id); factory createWithDouble(in double id); factory createWithLongDouble(in long double id); factory createWithChar(in char id); factory createWithWChar(in wchar id); factory createWithString(in string id); factory createWithBoundedString(in string<7> id); factory createWithWString(in wstring id); factory createWithBoundedWString(in wstring<3> id); factory createWithBoolean(in boolean id); factory createWithOctet(in octet id); factory createWithAny(in any id); factory createWithObject(in Object id); //factory createWithFixed(in fixed<7,3> id); }; #endif // __HOME_FACTORY_BASIC_TYPES__IDL__ --- NEW FILE: ComponentFacet.idl --- #ifndef __COMPONENT_FACET__IDL__ #define __COMPONENT_FACET__IDL__ #include <interface/InterfaceBasicTypeAttributes.idl> #include <interface/InterfaceUserTypeOperation.idl> component ComponentFacet { provides InterfaceBasicTypeAttributes basicTypes; provides InterfaceUserTypeOperation userTypes; }; home ComponentFacetHome manages ComponentFacet { }; #endif // __COMPONENT_FACET__IDL__ --- NEW FILE: ComponentInheritance.idl --- #ifndef __COMPONENT_INHERITANCE__IDL__ #define __COMPONENT_INHERITANCE__IDL__ #include <interface/InterfaceBasicTypeAttributes.idl> #include <interface/InterfaceUserTypeOperation.idl> component SuperComponent { provides InterfaceBasicTypeAttributes basicTypes; }; component SubComponent : SuperComponent { provides InterfaceUserTypeOperation userTypes; }; home SubComponentHome manages SubComponent { }; #endif // __COMPONENT_INHERITANCE__IDL__ --- NEW FILE: HomeFactoryException.idl --- #ifndef __HOME_FACTORY_EXCEPTION__IDL__ #define __HOME_FACTORY_EXCEPTION__IDL__ #include<exception/ExceptionEmpty.idl> #include<exception/ExceptionBasicType.idl> #include<exception/ExceptionUserType.idl> component HomeFactoryException { attribute string Id; }; home HomeFactoryExceptionHome manages HomeFactoryException { factory createWithExceptions() raises(ExceptionEmpty, ExceptionBasicType, ExceptionUserType); }; #endif // __HOME_FACTORY_EXCEPTION__IDL__ --- NEW FILE: HomeTypes.idl --- #ifndef __HOME_TYPES__IDL__ #define __HOME_TYPES__IDL__ component HomeTypes { }; home HomeTypesHome manages HomeTypes { typedef long LongType; enum Color { red, green, blue, black, orange }; struct Person { long id; string name; }; typedef long LongArray[10]; typedef sequence<long> LongSeq; void foo(in LongType p1, in Color p2, in Person p3, in LongArray p4, in LongSeq p5); }; #endif // __HOME_TYPES__IDL__ --- NEW FILE: HomePrimaryKey.idl --- #ifndef __HOME_PRIMARY_KEY__IDL__ #define __HOME_PRIMARY_KEY__IDL__ #include <valuetype/ValuetypeTest.idl> component PrimaryKeys { attribute string Id; }; home PrimaryKeysHome manages PrimaryKeys primarykey Login { }; #endif // __HOME_PRIMARY_KEY__IDL__ --- NEW FILE: ComponentSimple.idl --- #ifndef __COMPONENT_SIMPLE__IDL__ #define __COMPONENT_SIMPLE__IDL__ component ComponentSimple { attribute long Id; }; #endif // __COMPONENT_SIMPLE__IDL__ --- NEW FILE: ComponentConsumes.idl --- #ifndef __COMPONENT_CONSUMES__IDL__ #define __COMPONENT_CONSUMES__IDL__ #include <events/EventtypeTest.idl> component ComponentConsumes { consumes Login login; }; home ComponentConsumesHome manages ComponentConsumes { }; #endif // __COMPONENT_CONSUMES__IDL__ |