forked from tada/pljava
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathString_priv.h
More file actions
55 lines (45 loc) · 1.13 KB
/
Copy pathString_priv.h
File metadata and controls
55 lines (45 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
* Copyright (c) 2004, 2005, 2006 TADA AB - Taby Sweden
* Distributed under the terms shown in the file COPYRIGHT
* found in the root folder of this project or at
* http://eng.tada.se/osprojects/COPYRIGHT.html
*
* @author Thomas Hallgren
*/
#ifndef __pljava_type_String_priv_h
#define __pljava_type_String_priv_h
#include "pljava/type/Type_priv.h"
#include "pljava/type/String.h"
#ifdef __cplusplus
extern "C" {
#endif
/**************************************************************************
* @author Thomas Hallgren
**************************************************************************/
struct String_
{
/*
* The String "class" extends Type so the first
* entry must be the Type_ structure. This enables us
* to cast the String to a Type.
*/
struct Type_ Type_extension;
/*
* Transforms text into a Datum.
*/
FmgrInfo textInput;
/*
* Transforms datum into text.
*/
FmgrInfo textOutput;
/*
* Oid of elment type (if any)
*/
Oid elementType;
};
extern Datum _String_coerceObject(Type self, jobject jstr);
extern jvalue _String_coerceDatum(Type self, Datum value);
#ifdef __cplusplus
}
#endif
#endif