FineKernelToolKit  2.9.0
 全て クラス ネームスペース ファイル 関数 変数 型定義 列挙型 列挙型の値 フレンド マクロ定義 ページ
Attribute.h
説明を見る。
1 /****************************************************************************
2  *
3  * Copyright (c) 1999-2014, Fine Kernel Project, All rights reserved.
4  *
5  * Redistribution and use in source and binary forms,
6  * with or without modification, are permitted provided that the
7  * following conditions are met:
8  *
9  * - Redistributions of source code must retain the above
10  * copyright notice, this list of conditions and the
11  * following disclaimer.
12  *
13  * - Redistributions in binary form must reproduce the above
14  * copyright notice, this list of conditions and the
15  * following disclaimer in the documentation and/or
16  * other materials provided with the distribution.
17  *
18  * - Neither the name of the copyright holders nor the names
19  * of its contributors may be used to endorse or promote
20  * products derived from this software without specific
21  * prior written permission.
22  *
23  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
25  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
26  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
27  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
28  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
29  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
30  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
32  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
33  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34  * POSSIBILITY OF SUCH DAMAGE.
35  *
36  ****************************************************************************/
37 /****************************************************************************
38  *
39  * Copyright (c) 1999-2014, Fine Kernel Project, All rights reserved.
40  *
41  * 本ソフトウェアおよびソースコードのライセンスは、基本的に
42  * 「修正 BSD ライセンス」に従います。以下にその詳細を記します。
43  *
44  * ソースコード形式かバイナリ形式か、変更するかしないかを問わず、
45  * 以下の条件を満たす場合に限り、再頒布および使用が許可されます。
46  *
47  * - ソースコードを再頒布する場合、上記の著作権表示、本条件一覧、
48  * および下記免責条項を含めること。
49  *
50  * - バイナリ形式で再頒布する場合、頒布物に付属のドキュメント等の
51  * 資料に、上記の著作権表示、本条件一覧、および下記免責条項を
52  * 含めること。
53  *
54  * - 書面による特別の許可なしに、本ソフトウェアから派生した製品の
55  * 宣伝または販売促進に、本ソフトウェアの著作権者の名前または
56  * コントリビューターの名前を使用してはならない。
57  *
58  * 本ソフトウェアは、著作権者およびコントリビューターによって「現
59  * 状のまま」提供されており、明示黙示を問わず、商業的な使用可能性、
60  * および特定の目的に対する適合性に関す暗黙の保証も含め、またそれ
61  * に限定されない、いかなる保証もないものとします。著作権者もコン
62  * トリビューターも、事由のいかんを問わず、損害発生の原因いかんを
63  * 問わず、かつ責任の根拠が契約であるか厳格責任であるか(過失その
64  * 他の)不法行為であるかを問わず、仮にそのような損害が発生する可
65  * 能性を知らされていたとしても、本ソフトウェアの使用によって発生
66  * した(代替品または代用サービスの調達、使用の喪失、データの喪失、
67  * 利益の喪失、業務の中断も含め、またそれに限定されない)直接損害、
68  * 間接損害、偶発的な損害、特別損害、懲罰的損害、または結果損害に
69  * ついて、一切責任を負わないものとします。
70  *
71  ****************************************************************************/
72 #ifndef __FK_ATTIRIBUTE_HEADER__
73 #define __FK_ATTIRIBUTE_HEADER__
74 
75 #include <vector>
76 
77 class fk_Attribute_Data;
78 
80 
87 class fk_Attribute {
88  private:
89  fk_Attribute_Data *attr_data;
90 
91  bool IsExistData(void) const;
92 
93  public:
94 
96  fk_Attribute(void);
97 
99  virtual ~fk_Attribute();
100 
102 
103 
109  bool setAttrII(const int key, const int value);
110 
112 
116  bool setAttrID(const int key, const double value);
117 
119 
123  bool setAttrIS(const int key, const std::string value);
124 
126 
130  bool setAttrSI(const std::string key, const int value);
131 
133 
137  bool setAttrSD(const std::string key, const double value);
138 
140 
144  bool setAttrSS(const std::string key, const std::string value);
146 
148 
149 
151 
155  int getAttrII(const int key) const;
156 
158 
162  double getAttrID(const int key) const;
163 
165 
169  std::string getAttrIS(const int key) const;
170 
172 
176  int getAttrSI(const std::string key) const;
177 
179 
183  double getAttrSD(const std::string key) const;
184 
186 
190  std::string getAttrSS(const std::string key) const;
192 
194 
195 
197 
202  bool existAttrII(const int key) const;
203 
205 
210  bool existAttrID(const int key) const;
211 
213 
218  bool existAttrIS(const int key) const;
219 
221 
226  bool existAttrSI(const std::string key) const;
227 
229 
234  bool existAttrSD(const std::string key) const;
235 
237 
242  bool existAttrSS(const std::string key) const;
244 
246 
247 
249 
254  bool deleteAttrII(const int key);
255 
257 
262  bool deleteAttrID(const int key);
263 
265 
270  bool deleteAttrIS(const int key);
271 
273 
278  bool deleteAttrSI(const std::string key);
279 
281 
286  bool deleteAttrSD(const std::string key);
287 
289 
294  bool deleteAttrSS(const std::string key);
296 
297 #ifndef FK_DOXYGEN_USER_PROCESS
298 
299  void AttrInit(void);
300 
301 #endif
302 
303 };
304 
305 #endif // !__FK_ATTRIBUTE_HEADER__
bool existAttrII(const int key) const
キーが int 型、値が int 型である属性存在参照関数
fk_Attribute(void)
コンストラクタ
bool deleteAttrID(const int key)
キーが int 型、値が double 型である属性消去関数
bool setAttrSD(const std::string key, const double value)
キーが string 型、値が double 型である属性設定関数
int getAttrSI(const std::string key) const
キーが string 型、値が int 型である属性参照関数
std::string getAttrSS(const std::string key) const
キーが string 型、値が string 型である属性参照関数
bool deleteAttrSI(const std::string key)
キーが string 型、値が int 型である属性消去関数
double getAttrID(const int key) const
キーが int 型、値が double 型である属性参照関数
bool existAttrSS(const std::string key) const
キーが string 型、値が string 型である属性存在参照関数
bool existAttrID(const int key) const
キーが int 型、値が double 型である属性存在参照関数
bool existAttrIS(const int key) const
キーが int 型、値が string 型である属性存在参照関数
virtual ~fk_Attribute()
デストラクタ
std::string getAttrIS(const int key) const
キーが int 型、値が string 型である属性参照関数
形状や位相要素の属性を付与、取得するクラス
Definition: Attribute.h:87
bool setAttrSS(const std::string key, const std::string value)
キーが string 型、値が string 型である属性設定関数
bool setAttrID(const int key, const double value)
キーが int 型、値が double 型である属性設定関数
bool setAttrII(const int key, const int value)
キーが int 型、値が int 型である属性設定関数
bool deleteAttrIS(const int key)
キーが int 型、値が string 型である属性消去関数
int getAttrII(const int key) const
キーが int 型、値が int 型である属性参照関数
bool existAttrSI(const std::string key) const
キーが string 型、値が int 型である属性存在参照関数
double getAttrSD(const std::string key) const
キーが string 型、値が double 型である属性参照関数
bool deleteAttrSD(const std::string key)
キーが string 型、値が double 型である属性消去関数
bool setAttrIS(const int key, const std::string value)
キーが int 型、値が string 型である属性設定関数
bool deleteAttrSS(const std::string key)
キーが string 型、値が string 型である属性消去関数
bool deleteAttrII(const int key)
キーが int 型、値が int 型である属性消去関数
bool setAttrSI(const std::string key, const int value)
キーが string 型、値が int 型である属性設定関数
bool existAttrSD(const std::string key) const
キーが string 型、値が double 型である属性存在参照関数