⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 idl1.sct

📁 c#设计模式WithCla
💻 SCT
字号:
NO_OUTPUT_BEGIN
0 - This is a prelimary IDL code generation script for With Class 3.1
1 - Enter IDL data types: long,short, unsigned long, unsigned short, float, double, char, boolean, octet, any, string
2 - Enter following in CLASS_USER1 or CLASS_USER2: 
  const long max = 99;
  exception invalid_name { string err_text; } ;
  typedef char message[80];
  enum grade { A, B, C, D, F } ;
3 - This scripts generates the following:
  include statements
  readonly attributes - remove readonly if desired
  readonly attribute for 1:1 aggregation
  attribute for 1:1 association
  readonly attribute sequence for 1:Many aggregation
  attribute sequence for 1:Many association
  operation statements
4 - For compilable code you must enter update the parameters - in, out, inout, e.g. in string name 
5 - For compilable code, you must enter compilable raises statement in OPERATION_EXCEPTION_NAME, eg raises (access_error)
6 - With Class does not generate oneway or module statements
7 - After generating IDL code, compile the code using IDL compiler, e.g.
   Orbix with the command IDL -B -S test.idl
  Richard Felsinger 803-881-3648 e-mail 71162.755@compuserve.com   
NO_OUTPUT_END   

[#include <INCLUDE_FILE>  ]      

[#include "$BASE_CLASS.idl" ]                         

[#include "$ASSOCIATION_ONE_CLASS.idl" ]

[#include "$AGGREGATION_ONE_CLASS$.idl" ]

[#include "$ASSOCIATION_MANY_CLASS$.idl" ]

[#include "$AGGREGATION_MANY_CLASS$.idl" ]

CLASS_USER1

interface CLASS_NAME[NO_RETURN NO_REPEAT: BASE_CLASS ,DELETE_LAST_SYMBOL] CLASS_LIBRARY_BASE_CLASS     
{
  CLASS_USER2

  [readonly attribute ATTRIBUTE_TYPE ATTRIBUTE_NAME$;]
  [attribute ASSOCIATION_ONE_CLASS ASSOCIATION_ONE_NAME$;]
  [readonly attribute AGGREGATION_ONE_CLASS AGGREGATION_ONE_NAME$;]
  [typedef sequence<ASSOCIATION_MANY_CLASS> ASSOCIATION_MANY_CLASS$Sequence; 
   attribute ASSOCIATION_MANY_CLASS$Sequence ASSOCIATION_MANY_NAME;]
  [typedef sequence<AGGREGATION_MANY_CLASS> AGGREGATION_MANY_CLASS$Sequence; 
   readonly attribute AGGREGATION_MANY_CLASS$Sequence AGGREGATION_MANY_NAME;]
	
 [  OPERATION_RETURN_TYPE OPERATION_NAME (CPP_OPERATION_PARAMETERS) OPERATION_EXCEPTION_NAME ;] 

};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -