specified_object<Plociy> クラスが要求する Policy::generate_kernel_cfg 関数
- 引数:
-
| cfg | kernel_cfg.c 生成情報 |
| ostr | 出力ストリーム |
- 戻り値:
- 生成に成功すれば true を返す
toppers::itron::jsp::file_generator< termination_policy >を再定義しています。
termination.cpp の 55 行で定義されています。
参照先 toppers::kernel_cfg::get_inib_array()・name_. 00056 {
00057 using boost::format;
00058 typedef kernel_cfg::inib_array::const_iterator const_iterator;
00059
00060 const kernel_cfg::inib_array* pinibs = cfg.get_inib_array( name_ );
00061 if ( pinibs == 0 )
00062 {
00063 static const kernel_cfg::inib_array dummy;
00064 pinibs = &dummy;
00065 }
00066
00067
00068 ostr << "\t/* Termination handler */\n\n";
00069 ostr << "void\n_kernel_call_terrtn(void)\n{\n";
00070 for ( const_iterator iter( pinibs->begin() ), last( pinibs->end() ); iter != last; ++iter )
00071 {
00072 if ( !( *iter )->get( "terrtn" ).empty() )
00073 {
00074 ostr << format( "\t%1%((VP_INT)%2%);\n" ) % ( *iter )->get( "terrtn" ) % ( *iter )->get( "exinf" );
00075 }
00076 }
00077 ostr << "}\n\n";
00078
00079 return true;
00080 }
関数の呼び出しグラフ:
|