CUBRID Engine  latest
elo.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008 Search Solution Corporation
3  * Copyright 2016 CUBRID Corporation
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
19 
20 /*
21  * elo.h - External interface for ELO objects
22  *
23  */
24 
25 #ifndef _ELO_H_
26 #define _ELO_H_
27 
28 #ident "$Id$"
29 
30 #include "dbtype_def.h"
31 #include "porting.h"
32 #include "system.h"
33 
34 #include <stdio.h>
35 
36 #ifdef __cplusplus
37 extern "C"
38 {
39 #endif
40 
41  extern void elo_init_structure (DB_ELO * elo);
42 
43 #ifdef __cplusplus
44 }
45 #endif
46 
47 extern int elo_create (DB_ELO * elo);
48 
49 extern int elo_copy_structure (const DB_ELO * elo, DB_ELO * dest);
50 extern void elo_free_structure (DB_ELO * elo);
51 
52 extern int elo_copy (DB_ELO * elo, DB_ELO * dest);
53 extern int elo_delete (DB_ELO * elo, bool force_delete);
54 
55 extern off_t elo_size (DB_ELO * elo);
56 extern ssize_t elo_read (const DB_ELO * elo, off_t pos, void *buf, size_t count);
57 extern ssize_t elo_write (DB_ELO * elo, off_t pos, const void *buf, size_t count);
58 
59 #endif /* _ELO_H_ */
void elo_init_structure(DB_ELO *elo)
Definition: elo.c:127
off_t elo_size(DB_ELO *elo)
Definition: elo.c:421
void elo_free_structure(DB_ELO *elo)
Definition: elo.c:186
int elo_copy_structure(const DB_ELO *elo, DB_ELO *dest)
Definition: elo.c:142
int elo_delete(DB_ELO *elo, bool force_delete)
Definition: elo.c:357
ssize_t elo_write(DB_ELO *elo, off_t pos, const void *buf, size_t count)
Definition: elo.c:479
ssize_t elo_read(const DB_ELO *elo, off_t pos, void *buf, size_t count)
Definition: elo.c:453
int elo_create(DB_ELO *elo)
Definition: elo.c:83
int count(int &result, const cub_regex_object &reg, const std::string &src, const int position, const INTL_CODESET codeset)
int elo_copy(DB_ELO *elo, DB_ELO *dest)
Definition: elo.c:211