Update of /cvsroot/ccmtools/ccmtools/test/IDLParser/interface In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv449/test/IDLParser/interface Added Files: InterfaceVoidTypeOperation.idl Makefile InterfaceBasicTypeOperation.idl EmptyInterface.idl InterfaceAttributeExceptions.idl InterfaceType.idl InterfaceConstant.idl InterfaceOnewayOperation.idl InterfaceForward.idl InterfaceAbstract.idl InterfaceException.idl InterfaceReadonlyAttributes.idl InterfaceInheritance.idl InterfaceUserTypeOperation.idl InterfaceBasicTypeAttributes.idl InterfaceOperationException.idl InterfaceOperationContext.idl InterfaceUserTypeAttributes.idl InterfaceLocal.idl .cvsignore Log Message: Refactored test directory --- NEW FILE: InterfaceOnewayOperation.idl --- #ifndef __INTERFACE_ONEWAY_OPERATION__IDL__ #define __INTERFACE_ONEWAY_OPERATION__IDL__ interface InterfaceOnewayOperation { oneway void of0(); oneway void of1(in long p1); // oneway long of2(); //!!!!! Should be void !!!! }; #endif // __INTERFACE_ONEWAY_OPERATION__IDL__ --- NEW FILE: InterfaceInheritance.idl --- #ifndef __INTERFACE_INHERITANCE__IDL__ #define __INTERFACE_INHERITANCE__IDL__ #include "EmptyInterface.idl" interface InterfaceSuperTypeOne { attribute long attr1; long op1(in string str); }; interface InterfaceSuperTypeTwo { attribute long attr2; long op2(in string str); }; interface InterfaceSubType : InterfaceSuperTypeOne, InterfaceSuperTypeTwo, EmptyInterface { // attribute long attr1; // Redefinition !!!! attribute long attr3; long op3(in string str); }; #endif // __INTERFACE_INHERITANCE__IDL__ --- NEW FILE: InterfaceOperationContext.idl --- #ifndef __INTERFACE_OPERATION_CONTEXT__IDL__ #define __INTERFACE_OPERATION_CONTEXT__IDL__ interface InterfaceOperationContext { void foo() context ("CCM_LOCAL", "CCM_REMOTE"); }; #endif // __INTERFACE_OPERATION_CONTEXT__IDL__ --- NEW FILE: InterfaceException.idl --- #ifndef __INTERFACE_EXCEPTION__IDL__ #define __INTERFACE_EXCEPTION__IDL__ #include <typedef/BasicTypeTypedef.idl> #include <enum/Color.idl> #include <struct/Address.idl> #include <array/BasicTypeArray.idl> #include <sequence/BasicTypeSequence.idl> interface InterfaceException { exception ExceptionEmpty { }; exception ExceptionBasicType { short shortMember; long longMember; long long lLongMember; unsigned short uShortMember; unsigned long uLongMember; unsigned long long uLLongMember; float floatMember; double doubleMember; long double lDoubleMember; char charMember; wchar wcharMember; string stringMember; string<10> stringBoundedMember; wstring wstringMember; wstring<11> wstringBoundedMember; boolean booleanMember; octet octetMember; any anyMember; Object objectMember; fixed<9,2> fixedMember; }; exception ExceptionUserType { LongType typedefMember; Color enumMember; Address structMember; LongArray arrayMember; LongSeq sequencemember; }; void foo() raises (ExceptionEmpty, ExceptionBasicType, ExceptionUserType); }; #endif // __INTERFACE_EXCEPTION__IDL__ --- NEW FILE: InterfaceLocal.idl --- #ifndef __INTERFACE_LOCAL__IDL__ #define __INTERFACE_LOCAL__IDL__ local interface InterfaceLocal { }; #endif // __INTERFACE_LOCAL__IDL__ --- NEW FILE: InterfaceBasicTypeOperation.idl --- #ifndef __INTERFACE_BASIC_TYPE_OPERATION__IDL__ #define __INTERFACE_BASIC_TYPE_OPERATION__IDL__ interface InterfaceBasicTypeOperation { short shortOp(in short p1, inout short p2, out short p3); long longOp(in long p1, inout long p2, out long p3); long long lLongOp(in long long p1, inout long long p2, out long long p3); unsigned short uShortOp(in unsigned short p1, inout unsigned short p2, out unsigned short p3); unsigned long uLongOp(in unsigned long p1, inout unsigned long p2, out unsigned long p3); unsigned long long uLLongOp(in unsigned long long p1, inout unsigned long long p2, out unsigned long long p3); float floatOp(in float p1, inout float p2, out float p3); double doubleOp(in double p1, inout double p2, out double p3); long double lDoubleOp(in long double p1, inout long double p2, out long double p3); char charOp(in char p1, inout char p2, out char p3); wchar wcharOp(in wchar p1, inout wchar p2, out wchar p3); string stringOp(in string p1, inout string p2, out string p3); string<5> bStringOp(in string<5> p1, inout string<5> p2, out string<5> p3); wstring wstringOp(in wstring p1, inout wstring p2, out wstring p3); wstring<5> bWstringOp(in wstring<5> p1, inout wstring<5> p2, out wstring<5> p3); boolean booleanOp(in boolean p1, inout boolean p2, out boolean p3); octet octetOp(in octet p1, inout octet p2, out octet p3); any anyOp(in any p1, inout any p2, out any p3); Object objectOp(in Object p1, inout Object p2, out Object p3); }; #endif // __INTERFACE_BASIC_TYPE_OPERATION__IDL__ --- NEW FILE: InterfaceOperationException.idl --- #ifndef __INTERFACE_OPERATION_EXCEPTION__IDL__ #define __INTERFACE_OPERATION_EXCEPTION__IDL__ #include <exception/ExceptionEmpty.idl> #include <exception/ExceptionBasicType.idl> #include <exception/ExceptionUserType.idl> interface InterfaceOperationException { void foo() raises (ExceptionEmpty, ExceptionBasicType, ExceptionUserType); }; #endif // __INTERFACE_OPERATION_EXCEPTION__IDL__ --- NEW FILE: Makefile --- INCLUDE= -I../ all: idl3 idl3: ccmparser EmptyInterface.idl ccmparser InterfaceConstant.idl ccmparser InterfaceBasicTypeAttributes.idl ccmparser ${INCLUDE} InterfaceUserTypeAttributes.idl ccmparser ${INCLUDE} InterfaceReadonlyAttributes.idl ccmparser InterfaceVoidTypeOperation.idl ccmparser InterfaceBasicTypeOperation.idl ccmparser ${INCLUDE} InterfaceUserTypeOperation.idl ccmparser InterfaceOnewayOperation.idl ccmparser InterfaceOperationContext.idl ccmparser ${INCLUDE} InterfaceOperationException.idl ccmparser ${INCLUDE} InterfaceException.idl ccmparser InterfaceType.idl # ccmparser InterfaceForward.idl ccmparser InterfaceInheritance.idl --- NEW FILE: InterfaceAttributeExceptions.idl --- #ifndef __INTERFACE_ATTRIBUTE_EXCEPTIONS__IDL__ #define __INTERFACE_ATTRIBUTE_EXCEPTIONS__IDL__ #include<exception/ExceptionEmpty.idl> #include<exception/ExceptionBasicType.idl> #include<exception/ExceptionUserType.idl> #include<struct/Person.idl> interface InterfaceAttributeExceptions { attribute long longValue getraises(ExceptionEmpty) setraises(ExceptionBasicType, ExceptionUserType); attribute Person structValue getraises(ExceptionEmpty) setraises(ExceptionBasicType); }; #endif // __INTERFACE_ATTRIBUTE_EXCEPTIONS__IDL__ --- NEW FILE: InterfaceConstant.idl --- #ifndef __INTERFACE_CONSTANT__IDL__ #define __INTERFACE_CONSTANT__IDL__ interface InterfaceConstant { const boolean BOOLEAN_CONST = TRUE; const octet OCTET_CONST = 255; const short SHORT_CONST = -10; const unsigned short USHORT_CONST = 7; const long LONG_CONST = -7777; const unsigned long ULONG_CONST = 7777; const char CHAR_CONST = 'c'; const string STRING_CONST = "1234567890"; const float FLOAT_CONST = 3.14; const double DOUBLE_CONST = 3.1415926; }; #endif // __INTERFACE_CONSTANT__IDL__ --- NEW FILE: InterfaceBasicTypeAttributes.idl --- #ifndef __INTERFACE_BASIC_TYPE_ATTRIBUTE__IDL__ #define __INTERFACE_BASIC_TYPE_ATTRIBUTE__IDL__ interface InterfaceBasicTypeAttributes { // Here we define interface attributes which causes the // generation of a pair of getter und setter methods for // each attribute. 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 // __INTERFACE_BASIC_TYPE_ATTRIBUTE__IDL__ --- NEW FILE: InterfaceAbstract.idl --- #ifndef __INTERFACE_ABSTRACT__IDL__ #define __INTERFACE_ABSTRACT__IDL__ abstract interface InterfaceAbstract { }; #endif // __INTERFACE_ABSTRACT__IDL__ --- NEW FILE: InterfaceReadonlyAttributes.idl --- #ifndef __INTERFACE_READONLY_ATTRIBUTE__IDL__ #define __INTERFACE_READONLY_ATTRIBUTE__IDL__ #include <typedef/BasicTypeTypedef.idl> #include <enum/Color.idl> #include <struct/Address.idl> #include <array/BasicTypeArray.idl> #include <sequence/BasicTypeSequence.idl> #include "InterfaceBasicTypeAttributes.idl" interface InterfaceReadonlyAttribute { // Here we define a readonly attribute which causes only a getter // access method. readonly attribute short roShortValue; readonly attribute long roLongValue; readonly attribute long long roLLongValue; readonly attribute unsigned short roUShortValue; readonly attribute unsigned long roULongValue; readonly attribute unsigned long long roULLongValue; readonly attribute float roFloatValue; readonly attribute double roDoubleValue; readonly attribute long double roLDoubleValue; readonly attribute char roCharValue; readonly attribute wchar roWcharValue; readonly attribute string roStringValue; readonly attribute string<5> roBStringValue; readonly attribute wstring roWstringValue; readonly attribute wstring<5> roBWstringValue; readonly attribute boolean roBooleanValue; readonly attribute octet roOctetValue; readonly attribute any roAnyValue; readonly attribute Object roObjectValue; // Here we define a readonly attribute which causes only a getter // access method. readonly attribute LongType roTypedefValue; readonly attribute Color roEnumValue; readonly attribute Address roStructValue; readonly attribute LongArray roArrayValue; readonly attribute LongSeq roSequenceValue; readonly attribute InterfaceBasicTypeAttributes roInterfaceValue; }; #endif // __INTERFACE_READONLY_ATTRIBUTE__IDL__ --- NEW FILE: EmptyInterface.idl --- #ifndef __EMPTY_INTERFACE__IDL__ #define __EMPTY_INTERFACE__IDL__ interface EmptyInterface { }; #endif // __EMPTY_INTERFACE__IDL__ --- NEW FILE: InterfaceVoidTypeOperation.idl --- #ifndef __INTERFACE_VOID_TYPE_OPERATIONS__IDL__ #define __INTERFACE_VOID_TYPE_OPERATIONS__IDL__ interface InterfaceVoidTypeOperation { void f0(); void f1(in long p1); long f2(); }; #endif // __INTERFACE_VOID_TYPE_OPERATIONS__IDL__ --- NEW FILE: InterfaceForward.idl --- #ifndef __INTERFACE_FORWARD__IDL__ #define __INTERFACE_FORWARD__IDL__ interface Husband; // Forward declaration interface Wife { Husband getSpouse(); }; interface Husband { void getSpouse(); }; #endif // __INTERFACE_FORWARD__IDL__ --- NEW FILE: InterfaceUserTypeOperation.idl --- #ifndef __INTERFACE_USER_TYPE_OPERSTION__IDL__ #define __INTERFACE_USER_TYPE_OPERATION__IDL__ #include <typedef/BasicTypeTypedef.idl> #include <enum/Color.idl> #include <struct/Address.idl> #include <array/BasicTypeArray.idl> #include <sequence/BasicTypeSequence.idl> #include "InterfaceBasicTypeOperation.idl" interface InterfaceUserTypeOperation { LongType typedefOp(in LongType p1, inout LongType p2, out LongType p3); Color enumOp(in Color p1, inout Color p2, out Color p3); Address structOp(in Address p1, inout Address p2, out Address p3); LongArray arrayOp(in LongArray p1, inout LongArray p2, out LongArray p3); LongSeq sequenceOp(in LongSeq p1, inout LongSeq p2, out LongSeq p3); InterfaceBasicTypeOperation interfaceOp(in InterfaceBasicTypeOperation p1, inout InterfaceBasicTypeOperation p2, out InterfaceBasicTypeOperation p3); }; #endif // __INTERFACE_USER_TYPE_OPERATION__IDL__ --- NEW FILE: InterfaceUserTypeAttributes.idl --- #ifndef __INTERFACE_USER_TYPE_ATTRIBUTES__IDL__ #define __INTERFACE_USER_TYPE_ATTRIBUTES__IDL__ #include <typedef/BasicTypeTypedef.idl> #include <enum/Color.idl> #include <struct/Address.idl> #include <array/BasicTypeArray.idl> #include <sequence/BasicTypeSequence.idl> #include "InterfaceBasicTypeAttributes.idl" interface InterfaceUserTypeAttributes { // Here we define interface attributes which causes the // generation of a pair of getter und setter methods for // each attribute. attribute LongType typedefValue; attribute Color enumValue; attribute Address structValue; attribute LongArray arrayValue; attribute LongSeq sequenceValue; attribute InterfaceBasicTypeAttributes interfaceValue; }; #endif // __INTERFACE_USER_TYPE_ATTRIBUTES__IDL__ --- NEW FILE: .cvsignore --- _CCM_InterfaceBasicTypeOperation --- NEW FILE: InterfaceType.idl --- #ifndef __INTERFACE_TYPE__IDL__ #define __INTERFACE_TYPE__IDL__ interface InterfaceTypes { 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); }; /* interface InterfaceType2 { void foo(in InterfaceTypes::LongType p1, in InterfaceTypes::Color p2, in InterfaceTypes::Person p3, in InterfaceTypes::LongArray p4, in InterfaceTypes::LongSeq p5); }; */ #endif // __INTERFACE_TYPE__IDL__ |