[54] | 1 | /*
|
---|
| 2 | * TOPPERS Software
|
---|
| 3 | * Toyohashi Open Platform for Embedded Real-Time Systems
|
---|
| 4 | *
|
---|
| 5 | * Copyright (C) 2007-2009 by TAKAGI Nobuhisa
|
---|
| 6 | *
|
---|
| 7 | * 上記著作権者は,以下の(1)〜(4)の条件を満たす場合に限り,本ソフトウェ
|
---|
| 8 | * ア(本ソフトウェアを改変したものを含む.以下同じ)を使用・複製・改
|
---|
| 9 | * 変・再配布(以下,利用と呼ぶ)することを無償で許諾する.
|
---|
| 10 | * (1) 本ソフトウェアをソースコードの形で利用する場合には,上記の著作
|
---|
| 11 | * 権表示,この利用条件および下記の無保証規定が,そのままの形でソー
|
---|
| 12 | * スコード中に含まれていること.
|
---|
| 13 | * (2) 本ソフトウェアを,ライブラリ形式など,他のソフトウェア開発に使
|
---|
| 14 | * 用できる形で再配布する場合には,再配布に伴うドキュメント(利用
|
---|
| 15 | * 者マニュアルなど)に,上記の著作権表示,この利用条件および下記
|
---|
| 16 | * の無保証規定を掲載すること.
|
---|
| 17 | * (3) 本ソフトウェアを,機器に組み込むなど,他のソフトウェア開発に使
|
---|
| 18 | * 用できない形で再配布する場合には,次のいずれかの条件を満たすこ
|
---|
| 19 | * と.
|
---|
| 20 | * (a) 再配布に伴うドキュメント(利用者マニュアルなど)に,上記の著
|
---|
| 21 | * 作権表示,この利用条件および下記の無保証規定を掲載すること.
|
---|
| 22 | * (b) 再配布の形態を,別に定める方法によって,TOPPERSプロジェクトに
|
---|
| 23 | * 報告すること.
|
---|
| 24 | * (4) 本ソフトウェアの利用により直接的または間接的に生じるいかなる損
|
---|
| 25 | * 害からも,上記著作権者およびTOPPERSプロジェクトを免責すること.
|
---|
| 26 | * また,本ソフトウェアのユーザまたはエンドユーザからのいかなる理
|
---|
| 27 | * 由に基づく請求からも,上記著作権者およびTOPPERSプロジェクトを
|
---|
| 28 | * 免責すること.
|
---|
| 29 | *
|
---|
| 30 | * 本ソフトウェアは,無保証で提供されているものである.上記著作権者お
|
---|
| 31 | * よびTOPPERSプロジェクトは,本ソフトウェアに関して,特定の使用目的
|
---|
| 32 | * に対する適合性も含めて,いかなる保証も行わない.また,本ソフトウェ
|
---|
| 33 | * アの利用により直接的または間接的に生じたいかなる損害に関しても,そ
|
---|
| 34 | * の責任を負わない.
|
---|
| 35 | *
|
---|
| 36 | */
|
---|
| 37 | #ifndef CFG_HPP_
|
---|
| 38 | #define CFG_HPP_
|
---|
| 39 |
|
---|
| 40 | #include <cctype>
|
---|
| 41 | #include <cstdio>
|
---|
| 42 | #include <cstdlib>
|
---|
| 43 | #include <string>
|
---|
| 44 | #include <vector>
|
---|
| 45 | #include <sstream>
|
---|
| 46 | #include <iostream>
|
---|
| 47 | #include <algorithm>
|
---|
| 48 | #include <map>
|
---|
| 49 | #include "toppers/workaround.hpp"
|
---|
| 50 | #include "toppers/codeset.hpp"
|
---|
| 51 | #include "toppers/global.hpp"
|
---|
| 52 | #include "toppers/diagnostics.hpp"
|
---|
| 53 | #include "toppers/text.hpp"
|
---|
| 54 | #include "toppers/misc.hpp"
|
---|
| 55 | #include "toppers/itronx/preprocess.hpp"
|
---|
| 56 | #include "toppers/itronx/static_api.hpp"
|
---|
| 57 | #include "toppers/itronx/factory.hpp"
|
---|
| 58 | #include "toppers/itronx/cfg1_out.hpp"
|
---|
| 59 | #include "toppers/oil/preprocess.hpp"
|
---|
| 60 | #include "toppers/oil/factory.hpp"
|
---|
| 61 | #include "toppers/oil/cfg1_out.hpp"
|
---|
| 62 | #include <boost/utility.hpp>
|
---|
| 63 | #include <boost/format.hpp>
|
---|
| 64 |
|
---|
| 65 | #define CFG_VERSION cfg_version
|
---|
| 66 |
|
---|
| 67 | bool cfg0_main();
|
---|
| 68 | bool cfg1_main();
|
---|
| 69 | bool cfg2_main();
|
---|
| 70 | bool cfg3_main();
|
---|
| 71 | bool cfg4_main();
|
---|
| 72 | void cfg_init();
|
---|
| 73 |
|
---|
| 74 | extern char const cfg_version[];
|
---|
| 75 |
|
---|
| 76 | std::tr1::int64_t cfg_timestamp();
|
---|
| 77 |
|
---|
| 78 | bool read_cfg_file( std::map< std::string, toppers::itronx::static_api::info > const info_map,
|
---|
| 79 | std::string& cfg1_list, std::string& includes,
|
---|
| 80 | std::vector< toppers::itronx::static_api >& static_api_array );
|
---|
| 81 |
|
---|
| 82 | namespace toppers{ namespace itronx{
|
---|
| 83 | void assign_id( toppers::itronx::cfg1_out::static_api_map& api_map );
|
---|
| 84 | }}
|
---|
| 85 | namespace toppers{ namespace oil{
|
---|
| 86 | void assign_id( toppers::oil::cfg1_out::cfg_obj_map& cfg_obj_map );
|
---|
| 87 | }}
|
---|
| 88 |
|
---|
| 89 | #endif // ! CFG_HPP_
|
---|