1 | /* |
2 | * PROGRAM: JRD Access Method |
3 | * MODULE: mov_proto.h |
4 | * DESCRIPTION: Prototype header file for mov.cpp |
5 | * |
6 | * The contents of this file are subject to the Interbase Public |
7 | * License Version 1.0 (the "License"); you may not use this file |
8 | * except in compliance with the License. You may obtain a copy |
9 | * of the License at http://www.Inprise.com/IPL.html |
10 | * |
11 | * Software distributed under the License is distributed on an |
12 | * "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express |
13 | * or implied. See the License for the specific language governing |
14 | * rights and limitations under the License. |
15 | * |
16 | * The Original Code was created by Inprise Corporation |
17 | * and its predecessors. Portions created by Inprise Corporation are |
18 | * Copyright (C) Inprise Corporation. |
19 | * |
20 | * All Rights Reserved. |
21 | * Contributor(s): ______________________________________. |
22 | */ |
23 | |
24 | #ifndef JRD_MOV_PROTO_H |
25 | #define JRD_MOV_PROTO_H |
26 | |
27 | #include "../common/dsc.h" |
28 | #include "../jrd/jrd.h" |
29 | #include "../jrd/val.h" |
30 | |
31 | struct dsc; |
32 | struct vary; |
33 | |
34 | int MOV_compare(const dsc*, const dsc*); |
35 | double MOV_date_to_double(const dsc*); |
36 | void MOV_double_to_date(double, SLONG[2]); |
37 | bool MOV_get_boolean(const dsc*); |
38 | double MOV_get_double(const dsc*); |
39 | SLONG MOV_get_long(const dsc*, SSHORT); |
40 | void MOV_get_metaname(const dsc*, Firebird::MetaName&); |
41 | SQUAD MOV_get_quad(const dsc*, SSHORT); |
42 | SINT64 MOV_get_int64(const dsc*, SSHORT); |
43 | int MOV_get_string_ptr(const dsc*, USHORT*, UCHAR**, vary*, |
44 | USHORT); |
45 | int MOV_get_string(const dsc*, UCHAR**, vary*, USHORT); |
46 | GDS_DATE MOV_get_sql_date(const dsc*); |
47 | GDS_TIME MOV_get_sql_time(const dsc*); |
48 | GDS_TIMESTAMP MOV_get_timestamp(const dsc*); |
49 | int MOV_make_string(const dsc*, USHORT, const char**, vary*, USHORT); |
50 | int MOV_make_string2(Jrd::thread_db*, const dsc*, USHORT, UCHAR**, Jrd::MoveBuffer&, bool = true); |
51 | Firebird::string MOV_make_string2(Jrd::thread_db* tdbb, const dsc* desc, USHORT ttype, |
52 | bool limit = true); |
53 | void MOV_move(Jrd::thread_db*, /*const*/ dsc*, dsc*); |
54 | |
55 | #endif // JRD_MOV_PROTO_H |
56 | |