CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
OdCategoryDefinition.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
3// All rights reserved.
4//
5// This software and its documentation and related materials are owned by
6// the Alliance. The software may only be incorporated into application
7// programs owned by members of the Alliance, subject to a signed
8// Membership Agreement and Supplemental Software License Agreement with the
9// Alliance. The structure and organization of this software are the valuable
10// trade secrets of the Alliance and its suppliers. The software is also
11// protected by copyright law and international treaty provisions. Application
12// programs incorporating this software must include the following statement
13// with their copyright notices:
14//
15// This application incorporates Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
18// All rights reserved.
19//
20// By use of this software, its documentation or related materials, you
21// acknowledge and accept the above terms.
23#ifndef _ODSPATIALREFERENCE_ODCATEGORYDEFINITION_INCLUDED_
24#define _ODSPATIALREFERENCE_ODCATEGORYDEFINITION_INCLUDED_
25
26#include "OdDefinitionBase.h"
27
32{
34
39
44
45 class OdCategoryDefinitionImpl;
46
54 {
56 public:
65 static OdResult load(const OdString& sCode, OdCategoryDefinitionPtr& pCategoryDefinition);
66
75
84 static OdResult loadAll(const OdString& sCsCode, OdCategoryDefinitionArray& arrCD);
85
95
103 OdResult getCount(OdUInt32 & uCount) const;
104
113 OdResult getAt(OdUInt32 uIndex, OdString& sCode) const;
114
122 OdResult add(const OdString& sCode);
123
131 OdResult remove(const OdString& sCode);
132
139
148 OdResult contains(const OdString& sCode, bool & bContains) const;
149
158
168
177
186
193
202 OdResult containsVertical(const OdString& sCode, bool& bContains) const;
203
211 OdResult isProtected(bool& bProtected) const;
212
220 OdResult setProtected(bool bProtected);
221
229 static bool isLegalCode(const OdString& sCode);
230
232 };
233}
234
235#endif //_ODSPATIALREFERENCE_ODCATEGORYDEFINITION_INCLUDED_
unsigned int OdUInt32
OdResult
Definition OdResult.h:29
#define ODSPREF_RX_DECLARE_MEMBERS(ClassName)
#define TD_SPATIALREFERENCE_API
OdResult setProtected(bool bProtected)
OdResult addVertical(const OdString &sCode)
OdResult contains(const OdString &sCode, bool &bContains) const
OdResult add(const OdString &sCode)
OdResult getVerticalAt(OdUInt32 uIndex, OdString &sCode) const
OdResult getCount(OdUInt32 &uCount) const
OdResult getVerticalCount(OdUInt32 &uCount) const
static OdResult loadAllVertical(const OdString &sVcsCode, OdCategoryDefinitionArray &arrCD)
static OdResult loadAll(const OdString &sCsCode, OdCategoryDefinitionArray &arrCD)
static OdResult load(const OdString &sCode, OdCategoryDefinitionPtr &pCategoryDefinition)
OdResult remove(const OdString &sCode)
static bool isLegalCode(const OdString &sCode)
OdResult isProtected(bool &bProtected) const
static OdResult loadAll(OdCategoryDefinitionArray &arrCD)
OdResult removeVertical(const OdString &sCode)
OdResult containsVertical(const OdString &sCode, bool &bContains) const
OdResult getAt(OdUInt32 uIndex, OdString &sCode) const
OdSmartPtr< OdCategoryDefinition > OdCategoryDefinitionPtr
OdArray< OdCategoryDefinitionPtr > OdCategoryDefinitionArray