 |
NAVTOR SDK
v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
|
|
Go to the documentation of this file.
9 #ifndef SDK_GDB_ATTRIBUTE_INTERFACE_H_
10 #define SDK_GDB_ATTRIBUTE_INTERFACE_H_
17 #include <datalayer/inc/senc/senc_feature_dataset_s101.h>
19 SDK_GDB_BEGIN_NAMESPACE
83 SDKUInt32& count)
const throw() = 0;
115 SDKAny& value)
throw() = 0;
117 template<
typename T >
141 virtual GDBResult SDK_CALLTYPE
GetOwner(
142 IObject** owner)
const throw() = 0;
155 virtual GDBResult SDK_CALLTYPE
GetType(
170 virtual GDBResult SDK_CALLTYPE
GetValue(
171 SDKAny& value)
const throw() = 0;
185 virtual GDBResult SDK_CALLTYPE
GetFlags(
186 SDKUInt64& flags)
throw() = 0;
188 template<
typename T >
189 GDBResult GetValueT(T& out)
const throw() {
211 SDKUInt32& length)
const throw() = 0;
219 virtual GDBResult SDK_CALLTYPE
CopyValue(
221 SDKUInt8* buffer)
const throw() = 0;
233 SDKUInt8** value_ref)
const throw() = 0;
251 virtual GDBResult SDK_CALLTYPE
GetParent(
290 inline
void SDKTimeStructToSDKPackedTime(const SDKTimeStruct& ti,
291 SDKUInt64 flags, SDKAny& ti_packed) {
293 ANY_TIME_PACKED(&ti_packed) = 0;
297 ti.month : kSDK_PACKED_TIME_INVALID_MONTH;
299 ti.mday : kSDK_PACKED_TIME_INVALID_MDAY;
301 ti.hour : kSDK_PACKED_TIME_INVALID_HOUR;
303 ti.minute : kSDK_PACKED_TIME_INVALID_MINUTE;
305 ti.second : kSDK_PACKED_TIME_INVALID_SECOND;
308 SDK_GDB_END_NAMESPACE
310 #endif // SDK_GDB_ATTRIBUTE_INTERFACE_H_
@ kAVT_Vector
Vector of elements.
Definition: gdb_attribute.h:70
@ kDTF_VALID_HOUR
Hour.
Definition: gdb_attribute.h:43
virtual GDBResult SDK_CALLTYPE GetValueType(AttributeValueType &value_type) const =0
Returns the type of the attribute value.
@ kAVT_DateStruct
Date structure.
Definition: gdb_attribute.h:68
@ kAVT_Char
1 byte signed integer.
Definition: gdb_attribute.h:55
virtual GDBResult SDK_CALLTYPE GetAttribute(SDKUInt32 index, IAttribute **attribute)=0
Returns the attribute from the attribute collection specified by index. The first attribute has index...
@ kDTF_VALID_SECOND
Second.
Definition: gdb_attribute.h:45
virtual GDBResult SDK_CALLTYPE GetAttributeCount(SDKUInt32 &count) const =0
Returns the number of attributes in the attribute collection.
@ kAVT_Int
4 bytes signed integer.
Definition: gdb_attribute.h:57
@ kAVT_Int64
8 bytes signed integer.
Definition: gdb_attribute.h:58
@ kAVT_UChar
1 byte unsigned integer.
Definition: gdb_attribute.h:51
virtual GDBResult SDK_CALLTYPE GetValueRef(SDKUInt32 *length, SDKUInt8 **value_ref) const =0
Returns the reference to the attribute value. Locks dataset data until the AttributeValueRef is relea...
Provides access to members that return information for an Object attribute.
Definition: gdb_attribute.h:134
virtual GDBResult SDK_CALLTYPE GetAttributeClassCode(AttributeClassCode &class_code) const =0
Returns the class code of the attribute.
virtual GDBResult SDK_CALLTYPE FindAttribute(AttributeClassCode class_code, IAttribute **attribute)=0
Finds an attribute specified by the attribute class code.
@ kAVT_StringUTF32
UTF-16 character string.
Definition: gdb_attribute.h:65
Object is a basic entity of a geodatabase dataset. Every object in the geodatabase is uniquely identi...
Definition: gdb_feature.h:130
@ kAVT_Short
2 bytes signed integer.
Definition: gdb_attribute.h:56
@ kAVT_UInt
4 bytes unsigned integer.
Definition: gdb_attribute.h:53
@ kAVT_StringASCII
ASCII character string.
Definition: gdb_attribute.h:62
@ kAVT_Double
8 bytes double-precision floating-point number.
Definition: gdb_attribute.h:60
DateTimeFlags
Specifies a valid part of the date/time type attribute.
Definition: gdb_attribute.h:39
@ kAVT_DateTimeStruct
Date Time structure.
Definition: gdb_attribute.h:67
virtual GDBResult SDK_CALLTYPE GetType(AttributeType &attribute_type) const =0
Returns the type of the attribute.
virtual GDBResult SDK_CALLTYPE GetAttributeValueRef(IAttributeValueRef **value_ref)=0
Gives direct access to the attribute value in the SENC data.
@ kAVT_UInt64
8 bytes unsigned integer.
Definition: gdb_attribute.h:54
@ kAVT_TimeStruct
Time structure.
Definition: gdb_attribute.h:69
virtual GDBResult SDK_CALLTYPE ResetChildIterator()=0
Resets child iterator.
@ Ok
Operation completed successfully.
Definition: sdk_results_enum.h:22
AttributeValueType
Specifies an attribute value type.
Definition: gdb_attribute.h:50
Provides access to members that can be used to access the individual attributes of a geometry,...
Definition: gdb_attribute.h:76
virtual GDBResult SDK_CALLTYPE GetParent(IAttributeNode **parent) const =0
Returns the parent node.
virtual GDBResult SDK_CALLTYPE GetFlags(SDKUInt64 &flags)=0
Returns an attribute flags. Returns DateTimeFlags for the date/time types attribute value.
@ kDTF_VALID_YEAR
Year.
Definition: gdb_attribute.h:40
@ kDTF_VALID_DAY
Day.
Definition: gdb_attribute.h:42
Geo database constants and structures.
@ Err_InvalidArg
Wrong argument passed to function.
Definition: sdk_results_enum.h:27
SDKUInt32 ClassCode
Definition of the ClassCode types.
Definition: gdb_const.h:229
virtual GDBResult SDK_CALLTYPE CopyValue(SDKUInt32 length, SDKUInt8 *buffer) const =0
Copies an attribute value to the buffer.
@ kAVT_DateTime
Microsoft's variant time data type.
Definition: gdb_attribute.h:66
virtual GDBResult SDK_CALLTYPE GetFirstChild(ClassCode class_code, IAttributeNode **node) const =0
Returns the first child for the node.
@ kAVT_UShort
2 bytes unsigned integer.
Definition: gdb_attribute.h:52
@ kDTF_VALID_MINUTE
Minute.
Definition: gdb_attribute.h:44
#define SDK_FAILED(res)
Checks failed result.
Definition: sdk_results_enum.h:69
virtual GDBResult SDK_CALLTYPE GetValue(SDKAny &value) const =0
Returns the value of the attribute.
virtual GDBResult SDK_CALLTYPE GetNextChild(ClassCode class_code, IAttributeNode **node) const =0
Returns the next child for the node.
Base interface for all SDK interfaces.
Definition: sdk_component_interface.h:41
This class wraps the SDKAny type.
Definition: sdk_any_handler.h:32
virtual GDBResult SDK_CALLTYPE GetAttributeValue(AttributeClassCode class_code, SDKAny &value)=0
Method to return the value of an attribute specified by class.
virtual GDBResult SDK_CALLTYPE GetOwner(IObject **owner) const =0
Returns the owner of the attribute.
@ kAT_Complex
Complex attribute.
Definition: gdb_attribute.h:34
#define kSDK_PACKED_TIME_INVALID_YEAR
Date data type validity checks.
Definition: base_types.h:313
@ kSDKAnyType_SDKTimePacked
SDKTime packed structure.
Definition: base_types.h:158
ClassCode AttributeClassCode
Attribute class code type.
Definition: gdb_const.h:247
@ kDTF_VALID_MONTH
Month.
Definition: gdb_attribute.h:41
@ kAT_Simple
Simple attribute.
Definition: gdb_attribute.h:33
Describes interfaces that manages a geodatabase feature object.
Provides access to members that return information for the attribute tree.
Definition: gdb_attribute.h:243
@ kAVT_Single
4 bytes single-precision floating-point number.
Definition: gdb_attribute.h:59
virtual GDBResult SDK_CALLTYPE GetValueLength(SDKUInt32 &length) const =0
Returns the length of the attribute value in bytes.
@ kAVT_StringUTF16
UTF-16 character string.
Definition: gdb_attribute.h:64
AttributeType
Specifies an attribute type.
Definition: gdb_attribute.h:32
@ kAVT_String
String type.
Definition: gdb_attribute.h:61
FWD_DECL_INTERFACE(ILWEParserWrapper)
Provides a wrapper around the message parser to get, add or remove the.
Provides direct access to the attribute value in the SENC. The data is locked in memory until the att...
Definition: gdb_attribute.h:205
@ kAVT_StringUTF8
UTF-8 character string.
Definition: gdb_attribute.h:63
Wrappers for work with SDKAny instance.