Vanilla.PDF  1.3.0
Cross-platform toolkit for creating and modifying PDF documents
c_object.h
Go to the documentation of this file.
1 #ifndef _C_OBJECT_H
2 #define _C_OBJECT_H
3 
4 #include "vanillapdf/c_export.h"
5 #include "vanillapdf/c_handles.h"
6 #include "vanillapdf/c_values.h"
7 
8 #ifdef __cplusplus
9 extern "C"
10 {
11 #endif
12 
28  typedef enum {
34 
40 
46 
52 
58 
64 
70 
76 
82 
88  } ObjectType;
89 
98  VANILLAPDF_API error_type CALLING_CONVENTION Object_GetType(ObjectHandle* handle, ObjectType* result);
99 
103  VANILLAPDF_API error_type CALLING_CONVENTION Object_TypeName(ObjectType type, string_type* result);
104 
108  VANILLAPDF_API error_type CALLING_CONVENTION Object_GetOffset(ObjectHandle* handle, offset_type* result);
109 
114  VANILLAPDF_API error_type CALLING_CONVENTION Object_Release(ObjectHandle* handle);
115 
119  VANILLAPDF_API error_type CALLING_CONVENTION Object_ToArray(ObjectHandle* handle, ArrayObjectHandle** result);
120 
124  VANILLAPDF_API error_type CALLING_CONVENTION Object_ToStream(ObjectHandle* handle, StreamObjectHandle** result);
125 
129  VANILLAPDF_API error_type CALLING_CONVENTION Object_ToDictionary(ObjectHandle* handle, DictionaryObjectHandle** result);
130 
134  VANILLAPDF_API error_type CALLING_CONVENTION Object_ToIndirectReference(ObjectHandle* handle, IndirectObjectReferenceHandle** result);
135 
139  VANILLAPDF_API error_type CALLING_CONVENTION Object_ToInteger(ObjectHandle* handle, IntegerObjectHandle** result);
140 
144  VANILLAPDF_API error_type CALLING_CONVENTION Object_ToBoolean(ObjectHandle* handle, BooleanObjectHandle** result);
145 
149  VANILLAPDF_API error_type CALLING_CONVENTION Object_ToReal(ObjectHandle* handle, RealObjectHandle** result);
150 
154  VANILLAPDF_API error_type CALLING_CONVENTION Object_ToNull(ObjectHandle* handle, NullObjectHandle** result);
155 
159  VANILLAPDF_API error_type CALLING_CONVENTION Object_ToName(ObjectHandle* handle, NameObjectHandle** result);
160 
164  VANILLAPDF_API error_type CALLING_CONVENTION Object_ToString(ObjectHandle* handle, StringObjectHandle** result);
165 
168 #ifdef __cplusplus
169 };
170 #endif
171 
172 #endif /* _C_OBJECT_H */
error_type Object_ToInteger(ObjectHandle *handle, IntegerObjectHandle **result)
Reinterpret current object as IntegerObjectHandle.
Represents floating point numbers.
Used as missing value.
Definition: c_object.h:63
ObjectType
Available types of objects.
Definition: c_object.h:28
error_type Object_ToDictionary(ObjectHandle *handle, DictionaryObjectHandle **result)
Reinterpret current object as DictionaryObjectHandle.
Definition: c_object.h:69
error_type Object_TypeName(ObjectType type, string_type *result)
Get string representation of object type.
error_type Object_Release(ObjectHandle *handle)
Decrement the internal reference counter.
error_type Object_GetOffset(ObjectHandle *handle, offset_type *result)
Get input file offset where this object was found.
error_type Object_ToStream(ObjectHandle *handle, StreamObjectHandle **result)
Reinterpret current object as StreamObjectHandle.
Represents integer values.
This file contains all type forward declarations returned by the library API.
Represents reference to other object.
const char * string_type
C-Style string.
Definition: c_types.h:82
Definition: c_object.h:51
error_type Object_ToBoolean(ObjectHandle *handle, BooleanObjectHandle **result)
Reinterpret current object as BooleanObjectHandle.
Represents array of mixed type elements.
error_type Object_GetType(ObjectHandle *handle, ObjectType *result)
Get derived type of current object.
error_type Object_ToNull(ObjectHandle *handle, NullObjectHandle **result)
Reinterpret current object as NullObjectHandle.
Represents key-value map.
Base class for syntactic tokens.
error_type Object_ToString(ObjectHandle *handle, StringObjectHandle **result)
Reinterpret current object as StringObjectHandle.
Represents boolean type.
Definition: c_object.h:57
Definition: c_object.h:87
uint32_t error_type
This is return value type of all API functions.
Definition: c_types.h:25
error_type Object_ToIndirectReference(ObjectHandle *handle, IndirectObjectReferenceHandle **result)
Reinterpret current object as IndirectObjectReferenceHandle.
This file contains macro declarations for importing and exporting symbols from library boundaries...
Definition: c_object.h:81
This file contains types and constants used as parameters or return values.
int64_t offset_type
Offset type compatible with standard IO.
Definition: c_types.h:56
error_type Object_ToReal(ObjectHandle *handle, RealObjectHandle **result)
Reinterpret current object as RealObjectHandle.
Definition: c_object.h:33
Reprsents human readable text.
Represents compressed data inside document.
Represents unique name references in document.
error_type Object_ToName(ObjectHandle *handle, NameObjectHandle **result)
Reinterpret current object as NameObjectHandle.
Definition: c_object.h:39
Definition: c_object.h:45
error_type Object_ToArray(ObjectHandle *handle, ArrayObjectHandle **result)
Reinterpret current object as ArrayObjectHandle.
Definition: c_object.h:75