Changeset 34 for SimpleSample/trunk/SimpleSampleTrace/SimpleSample.cdl
- Timestamp:
- Jun 24, 2012, 7:42:09 PM (12 years ago)
- Location:
- SimpleSample/trunk/SimpleSampleTrace
- Files:
-
- 1 added
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
SimpleSample/trunk/SimpleSampleTrace/SimpleSample.cdl
r30 r34 5 5 * | | | | | | 6 6 * | tTask | sTaskBody | tSimple | sSample | tSample | 7 * | Task |-----------|> Simple | ----------|> Sample |7 * | Task |-----------|> Simple |==========|> Sample | 8 8 * | |cTask eBody| |cCall eEnt| | 9 9 * | |Body | | | | 10 10 * +-------------+ +-------------+ +-------------+ 11 * 12 * * SimpleSample/SimpleSample.cdl を参照 13 * * この例では Trace プラグインが指定される。以下の※を参照 14 * * Trace プラグインのため tSysLog, tKernel を用いる 11 15 */ 12 13 16 14 17 // cygwin 用の簡易な型定義 15 18 import( <cygwin_kernel.cdl> ); 16 // TECS 対応 TOPPERS/ASP ならば import( <kernel.cdl> ); でよい19 // TECS 対応 TOPPERS/ASP ならば import( <kernel.cdl> ); に相当する 17 20 21 // tSysLog の定義 (Trace の出力先) 18 22 import( <tSysLog.cdl> ); 19 23 24 // セル SysLog (Trace の出力先) 20 25 cell tSysLog SysLog { 21 26 }; 27 // セル Kernel (Trace の時刻を得る) 22 28 cell tKernel Kernel { 23 29 }; 24 30 31 // シグニチャ sSample 25 32 signature sSample { 26 33 ER sayHello( [in]int32_t times ); … … 28 35 }; 29 36 37 // セルタイプ tSample 30 38 celltype tSample { 31 39 entry sSample eEnt; 32 40 }; 33 41 34 [singleton,active] 42 // セルタイプ tSimple 35 43 celltype tSimple { 36 44 call sSample cCall; … … 38 46 }; 39 47 48 // セル Sample 40 49 cell tSample Sample { 41 50 }; 42 51 52 // セル Simple 43 53 cell tSimple Simple { 44 [through(TracePlugin,"")] 54 [through(TracePlugin,"")] // <<< ※ この行を挿入 45 55 cCall = Sample.eEnt; 46 56 }; 47 57 58 // セル Task 48 59 cell tTask Task { 49 60 cBody = Simple.eBody; … … 52 63 taskAttribute = C_EXP( "TA_ACT" ); 53 64 }; 65
Note:
See TracChangeset
for help on using the changeset viewer.