|
|
cfg_factory.hpp説明を見る。00001 /* 00002 * TOPPERS/FDMP Kernel 00003 * Toyohashi Open Platform for Embedded Real-Time Systems/ 00004 * Function Distributed Multiprocessor Kernel 00005 * 00006 * Copyright (C) 2005 by Takagi Nobuhisa 00007 * 00008 * 上記著作権者は,以下の (1)〜(4) の条件か,Free Software Foundation 00009 * によって公表されている GNU General Public License の Version 2 に記 00010 * 述されている条件を満たす場合に限り,本ソフトウェア(本ソフトウェア 00011 * を改変したものを含む.以下同じ)を使用・複製・改変・再配布(以下, 00012 * 利用と呼ぶ)することを無償で許諾する. 00013 * (1) 本ソフトウェアをソースコードの形で利用する場合には,上記の著作 00014 * 権表示,この利用条件および下記の無保証規定が,そのままの形でソー 00015 * スコード中に含まれていること. 00016 * (2) 本ソフトウェアを,ライブラリ形式など,他のソフトウェア開発に使 00017 * 用できる形で再配布する場合には,再配布に伴うドキュメント(利用 00018 * 者マニュアルなど)に,上記の著作権表示,この利用条件および下記 00019 * の無保証規定を掲載すること. 00020 * (3) 本ソフトウェアを,機器に組み込むなど,他のソフトウェア開発に使 00021 * 用できない形で再配布する場合には,次のいずれかの条件を満たすこ 00022 * と. 00023 * (a) 再配布に伴うドキュメント(利用者マニュアルなど)に,上記の著 00024 * 作権表示,この利用条件および下記の無保証規定を掲載すること. 00025 * (b) 再配布の形態を,別に定める方法によって,TOPPERSプロジェクトに 00026 * 報告すること. 00027 * (4) 本ソフトウェアの利用により直接的または間接的に生じるいかなる損 00028 * 害からも,上記著作権者およびTOPPERSプロジェクトを免責すること. 00029 * 00030 * 本ソフトウェアは,無保証で提供されているものである.上記著作権者お 00031 * よびTOPPERSプロジェクトは,本ソフトウェアに関して,その適用可能性も 00032 * 含めて,いかなる保証も行わない.また,本ソフトウェアの利用により直 00033 * 接的または間接的に生じたいかなる損害に関しても,その責任を負わない. 00034 * 00035 */ 00036 00041 #ifndef TOPPERS_ITRON_MP_CFG_FACTORY_HPP_ 00042 #define TOPPERS_ITRON_MP_CFG_FACTORY_HPP_ 00043 00044 #include "toppers/itron/fdmp/cfg_contents.hpp" 00045 #include "toppers/itron/cfg_factory.hpp" 00046 00047 namespace toppers 00048 { 00049 namespace itron 00050 { 00051 namespace fdmp 00052 { 00053 00058 class cfg_factory : public itron::cfg_factory 00059 { 00060 public: 00061 cfg_factory( const cmdline::option_array& options, const std::string& version, long prid ); 00062 static const boost::shared_ptr<itron::cfg_factory> build( const cmdline::option_array& options, const std::string& version ); 00063 protected: 00064 virtual const boost::shared_ptr<itron::cfg_contents> do_create_cfg_contents( text::const_iterator& next, text::const_iterator last, bool ucn, codeset_t codeset ) const; 00065 virtual const std::string do_get_cfg_file_name( const std::string& file ) const; 00066 virtual const boost::shared_ptr<std::vector<kernel_cfg_generator_type> > do_create_kernel_cfg_generators() const; 00067 virtual const boost::shared_ptr<std::vector<kernel_id_generator_type> > do_create_kernel_id_generators() const; 00068 virtual const boost::shared_ptr<std::vector<kernel_object::builder_type> > do_get_kernel_object_builders() const; 00069 virtual const boost::shared_ptr<std::vector<std::string> > do_get_kernel_object_names() const; 00070 virtual extra_initializer_type do_get_extra_initializer() const; 00071 virtual const boost::shared_ptr<kernel_chk> do_create_kernel_chk() const; 00072 private: 00073 static void extra_init( const kernel_cfg& cfg, std::ostream& ostr ); 00074 00075 boost::shared_ptr<itron::cfg_factory> base_factory_; 00076 }; 00077 00078 } 00079 } 00080 } 00081 00082 #endif // ! TOPPERS_ITRON_MP_CFG_FACTORY_HPP_ Copyright © 2006 by TAKAGI Nobuhisa. このページは Wed Apr 12 16:31:56 2006 に Doxygen によって生成されました。 |