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
31struct dsc;
32struct vary;
33
34int MOV_compare(const dsc*, const dsc*);
35double MOV_date_to_double(const dsc*);
36void MOV_double_to_date(double, SLONG[2]);
37bool MOV_get_boolean(const dsc*);
38double MOV_get_double(const dsc*);
39SLONG MOV_get_long(const dsc*, SSHORT);
40void MOV_get_metaname(const dsc*, Firebird::MetaName&);
41SQUAD MOV_get_quad(const dsc*, SSHORT);
42SINT64 MOV_get_int64(const dsc*, SSHORT);
43int MOV_get_string_ptr(const dsc*, USHORT*, UCHAR**, vary*,
44 USHORT);
45int MOV_get_string(const dsc*, UCHAR**, vary*, USHORT);
46GDS_DATE MOV_get_sql_date(const dsc*);
47GDS_TIME MOV_get_sql_time(const dsc*);
48GDS_TIMESTAMP MOV_get_timestamp(const dsc*);
49int MOV_make_string(const dsc*, USHORT, const char**, vary*, USHORT);
50int MOV_make_string2(Jrd::thread_db*, const dsc*, USHORT, UCHAR**, Jrd::MoveBuffer&, bool = true);
51Firebird::string MOV_make_string2(Jrd::thread_db* tdbb, const dsc* desc, USHORT ttype,
52 bool limit = true);
53void MOV_move(Jrd::thread_db*, /*const*/ dsc*, dsc*);
54
55#endif // JRD_MOV_PROTO_H
56