FineKernelToolKit 4.2.13
読み取り中…
検索中…
一致する文字列を見つけられません
Attribute.h
[詳解]
1#if !defined(__FK_ATTIRIBUTE_HEADER__)
2#define __FK_ATTIRIBUTE_HEADER__
3
4#include <FK/Base.h>
5#include <FK/AttributeData.hh>
6
7namespace FK {
8
10
17 class fk_Attribute : public fk_BaseObject {
18 public:
19
22
24 virtual ~fk_Attribute();
25
28
30
42 bool setAttrII(const int key, const int value);
43
45
57 bool setAttrID(const int key, const double value);
58
60
72 bool setAttrIS(const int key, const std::string value);
73
75
87 bool setAttrSI(const std::string key, const int value);
88
90
102 bool setAttrSD(const std::string key, const double value);
103
105
117 bool setAttrSS(const std::string key, const std::string value);
119
122
124
133 int getAttrII(const int key) const;
134
136
146 double getAttrID(const int key) const;
147
149
158 std::string getAttrIS(const int key) const;
159
161
170 int getAttrSI(const std::string key) const;
171
173
182 double getAttrSD(const std::string key) const;
183
185
194 std::string getAttrSS(const std::string key) const;
196
199
201
213 bool existAttrII(const int key) const;
214
216
228 bool existAttrID(const int key) const;
229
231
243 bool existAttrIS(const int key) const;
244
246
258 bool existAttrSI(const std::string key) const;
259
261
273 bool existAttrSD(const std::string key) const;
274
276
288 bool existAttrSS(const std::string key) const;
290
293
295
307 bool deleteAttrII(const int key);
308
310
322 bool deleteAttrID(const int key);
323
325
337 bool deleteAttrIS(const int key);
338
340
352 bool deleteAttrSI(const std::string key);
353
355
367 bool deleteAttrSD(const std::string key);
368
370
382 bool deleteAttrSS(const std::string key);
384
385#if !defined(FK_DOXYGEN_USER_PROCESS)
386 void AttrInit(void);
387#endif
388
389 private:
390 std::shared_ptr<fk_Attribute_Data> attr_data;
391 bool IsExistData(void) const;
392 };
393}
394
395#endif // !__FK_ATTRIBUTE_HEADER__
396
397/****************************************************************************
398 *
399 * Copyright (c) 1999-2024, Fine Kernel Project, All rights reserved.
400 *
401 * Redistribution and use in source and binary forms,
402 * with or without modification, are permitted provided that the
403 * following conditions are met:
404 *
405 * - Redistributions of source code must retain the above
406 * copyright notice, this list of conditions and the
407 * following disclaimer.
408 *
409 * - Redistributions in binary form must reproduce the above
410 * copyright notice, this list of conditions and the
411 * following disclaimer in the documentation and/or
412 * other materials provided with the distribution.
413 *
414 * - Neither the name of the copyright holders nor the names
415 * of its contributors may be used to endorse or promote
416 * products derived from this software without specific
417 * prior written permission.
418 *
419 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
420 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
421 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
422 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
423 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
424 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
425 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
426 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
427 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
428 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
429 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
430 * POSSIBILITY OF SUCH DAMAGE.
431 *
432 ****************************************************************************/
433/****************************************************************************
434 *
435 * Copyright (c) 1999-2024, Fine Kernel Project, All rights reserved.
436 *
437 * 本ソフトウェアおよびソースコードのライセンスは、基本的に
438 * 「修正 BSD ライセンス」に従います。以下にその詳細を記します。
439 *
440 * ソースコード形式かバイナリ形式か、変更するかしないかを問わず、
441 * 以下の条件を満たす場合に限り、再頒布および使用が許可されます。
442 *
443 * - ソースコードを再頒布する場合、上記の著作権表示、本条件一覧、
444 * および下記免責条項を含めること。
445 *
446 * - バイナリ形式で再頒布する場合、頒布物に付属のドキュメント等の
447 * 資料に、上記の著作権表示、本条件一覧、および下記免責条項を
448 * 含めること。
449 *
450 * - 書面による特別の許可なしに、本ソフトウェアから派生した製品の
451 * 宣伝または販売促進に、本ソフトウェアの著作権者の名前または
452 * コントリビューターの名前を使用してはならない。
453 *
454 * 本ソフトウェアは、著作権者およびコントリビューターによって「現
455 * 状のまま」提供されており、明示黙示を問わず、商業的な使用可能性、
456 * および特定の目的に対する適合性に関す暗黙の保証も含め、またそれ
457 * に限定されない、いかなる保証もないものとします。著作権者もコン
458 * トリビューターも、事由のいかんを問わず、損害発生の原因いかんを
459 * 問わず、かつ責任の根拠が契約であるか厳格責任であるか(過失その
460 * 他の)不法行為であるかを問わず、仮にそのような損害が発生する可
461 * 能性を知らされていたとしても、本ソフトウェアの使用によって発生
462 * した(代替品または代用サービスの調達、使用の喪失、データの喪失、
463 * 利益の喪失、業務の中断も含め、またそれに限定されない)直接損害、
464 * 間接損害、偶発的な損害、特別損害、懲罰的損害、または結果損害に
465 * ついて、一切責任を負わないものとします。
466 *
467 ****************************************************************************/
形状や位相要素の属性を付与、取得するクラス
Definition Attribute.h:17
int getAttrSI(const std::string key) const
キーが std::string 型、値が int 型である属性参照関数
bool existAttrID(const int key) const
キーが int 型、値が double 型である属性存在参照関数
bool existAttrIS(const int key) const
キーが int 型、値が std::string 型である属性存在参照関数
bool setAttrII(const int key, const int value)
キーが int 型、値が int 型である属性設定関数
bool existAttrSS(const std::string key) const
キーが std::string 型、値が std::string 型である属性存在参照関数
bool deleteAttrSD(const std::string key)
キーが std::string 型、値が double 型である属性消去関数
bool existAttrSI(const std::string key) const
キーが std::string 型、値が int 型である属性存在参照関数
std::string getAttrIS(const int key) const
キーが int 型、値が std::string 型である属性参照関数
bool setAttrSI(const std::string key, const int value)
キーが std::string 型、値が int 型である属性設定関数
double getAttrSD(const std::string key) const
キーが std::string 型、値が double 型である属性参照関数
bool deleteAttrII(const int key)
キーが int 型、値が int 型である属性消去関数
bool deleteAttrSI(const std::string key)
キーが std::string 型、値が int 型である属性消去関数
bool deleteAttrIS(const int key)
キーが int 型、値が std::string 型である属性消去関数
bool setAttrSD(const std::string key, const double value)
キーが std::string 型、値が double 型である属性設定関数
std::string getAttrSS(const std::string key) const
キーが std::string 型、値が std::string 型である属性参照関数
int getAttrII(const int key) const
キーが int 型、値が int 型である属性参照関数
bool setAttrID(const int key, const double value)
キーが int 型、値が double 型である属性設定関数
virtual ~fk_Attribute()
デストラクタ
bool existAttrII(const int key) const
キーが int 型、値が int 型である属性存在参照関数
bool deleteAttrID(const int key)
キーが int 型、値が double 型である属性消去関数
double getAttrID(const int key) const
キーが int 型、値が double 型である属性参照関数
bool deleteAttrSS(const std::string key)
キーが std::string 型、値が std::string 型である属性消去関数
bool setAttrIS(const int key, const std::string value)
キーが int 型、値が std::string 型である属性設定関数
bool setAttrSS(const std::string key, const std::string value)
キーが std::string 型、値が std::string 型である属性設定関数
fk_Attribute(void)
コンストラクタ
bool existAttrSD(const std::string key) const
キーが std::string 型、値が double 型である属性存在参照関数
FK の各クラスの基盤となる基本クラス
Definition Base.h:113
Fine Kernel Toolkit 名前空間
Definition Angle.h:6