CUBRID Engine  latest
object_print.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  * object_print.h - Routines to print dbvalues
21  */
22 
23 #ifndef _OBJECT_PRINT_H
24 #define _OBJECT_PRINT_H
25 
26 #ident "$Id$"
27 
28 #include "dbtype_def.h"
29 
30 #include <stdio.h>
31 
32 #if defined(SERVER_MODE)
33 #error Does not belong to server module
34 #endif //defined(SERVER_MODE)
35 
36 struct trigger_description;
37 class print_output;
38 
39 /* HELP FUNCTIONS */
40 
41 /* Trigger help */
42 int help_trigger_names (char ***names_ptr);
43 
44 /* This can be used to free the class name list or the trigger name list */
45 void help_free_names (char **names);
46 
47 
48 /* Class/Instance printing */
49 void help_print_obj (print_output & output_ctx, MOP obj);
50 
51 /* Class name help */
52 // ctltool uses the functions
53 #ifdef __cplusplus
54 extern "C"
55 {
56 #endif
57  extern char **help_class_names (const char *qualifier);
58  extern void help_free_class_names (char **names);
59 #ifdef __cplusplus
60 }
61 #endif
62 
63 /* Misc help */
64 void help_print_info (const char *command, FILE * fpp);
65 int help_describe_mop (DB_OBJECT * obj, char *buffer, int maxlen);
66 
67 void help_print_describe_comment (print_output & output_ctx, const char *comment);
68 
69 #endif /* _OBJECT_PRINT_H */
int help_describe_mop(DB_OBJECT *obj, char *buffer, int maxlen)
Definition: object_print.c:498
void help_print_info(const char *command, FILE *fpp)
Definition: object_print.c:595
void help_free_class_names(char **names)
Definition: object_print.c:451
int help_trigger_names(char ***names_ptr)
Definition: object_print.c:78
void help_print_describe_comment(print_output &output_ctx, const char *comment)
Definition: object_print.c:716
char ** help_class_names(const char *qualifier)
Definition: object_print.c:347
void help_free_names(char **names)
Definition: object_print.c:431
void help_print_obj(print_output &output_ctx, MOP obj)
Definition: object_print.c:141