CUBRID Engine  latest
object_print.c File Reference
#include "object_print.h"
#include "authenticate.h"
#include "chartype.h"
#include "class_description.hpp"
#include "dbi.h"
#include "dbtype.h"
#include "error_manager.h"
#include "locator_cl.h"
#include "message_catalog.h"
#include "msgcat_help.hpp"
#include "network_interface_cl.h"
#include "object_description.hpp"
#include "object_print_util.hpp"
#include "object_printer.hpp"
#include "printer.hpp"
#include "schema_manager.h"
#include "string_buffer.hpp"
#include "trigger_description.hpp"
#include "trigger_manager.h"
Include dependency graph for object_print.c:

Go to the source code of this file.

Macros

#define MATCH_TOKEN(string, token)   ((string == NULL) ? 0 : intl_mbs_casecmp(string, token) == 0)
 

Functions

static char * obj_print_next_token (char *ptr, char *buf)
 
int help_trigger_names (char ***names_ptr)
 
void help_print_obj (print_output &output_ctx, MOP obj)
 
char ** help_class_names (const char *qualifier)
 
void help_free_names (char **names)
 
void help_free_class_names (char **names)
 
void help_fprint_class_names (FILE *fp, const char *qualifier)
 
int help_describe_mop (DB_OBJECT *obj, char *buffer, int maxlen)
 
void help_print_info (const char *command, FILE *fpp)
 
void help_print_describe_comment (print_output &output_ctx, const char *comment)
 

Macro Definition Documentation

#define MATCH_TOKEN (   string,
  token 
)    ((string == NULL) ? 0 : intl_mbs_casecmp(string, token) == 0)

Definition at line 50 of file object_print.c.

Referenced by help_print_info().

Function Documentation

int help_describe_mop ( DB_OBJECT obj,
char *  buffer,
int  maxlen 
)

Definition at line 498 of file object_print.c.

References au_fetch_class(), AU_FETCH_READ, AU_SELECT, DB_FETCH_READ, locator_is_class(), NO_ERROR, NULL, sm_ch_name(), strlen, and WS_OID.

Referenced by db_print_mop().

Here is the caller graph for this function:

void help_fprint_class_names ( FILE *  fp,
const char *  qualifier 
)

Definition at line 465 of file object_print.c.

References help_class_names(), help_free_class_names(), i, and NULL.

Referenced by help_print_info().

Here is the caller graph for this function:

void help_free_class_names ( char **  names)

Definition at line 451 of file object_print.c.

References help_free_names().

Referenced by help_fprint_class_names().

Here is the caller graph for this function:

void help_free_names ( char **  names)

Definition at line 431 of file object_print.c.

References object_print::free_strarray(), and NULL.

Referenced by csql_help_trigger(), help_free_class_names(), and help_print_info().

Here is the caller graph for this function:

void help_print_describe_comment ( print_output output_ctx,
const char *  comment 
)
void help_print_obj ( print_output output_ctx,
MOP  obj 
)

Definition at line 141 of file object_print.c.

References trigger_description::action, trigger_description::action_time, trigger_description::attribute, object_description::attributes, class_description::attributes, class_description::class_attributes, class_description::class_methods, trigger_description::class_name, class_description::class_type, object_description::classname, trigger_description::comment, trigger_description::condition, trigger_description::condition_time, class_description::CSQL_SCHEMA_COMMAND, DB_FETCH_READ, trigger_description::event, help_print_describe_comment(), i, object_description::init(), trigger_description::init(), class_description::init(), locator_is_class(), locator_is_root(), class_description::method_files, class_description::methods, MSGCAT_CATALOG_CUBRID, MSGCAT_HELP_ATTRIBUTES, MSGCAT_HELP_CLASS_ATTRIBUTES, MSGCAT_HELP_CLASS_METHODS, MSGCAT_HELP_CLASS_TITLE, MSGCAT_HELP_METHOD_FILES, MSGCAT_HELP_METHODS, MSGCAT_HELP_OBJECT_TITLE, MSGCAT_HELP_QUERY_SPEC, MSGCAT_HELP_RESOLUTIONS, MSGCAT_HELP_ROOTCLASS_TITLE, MSGCAT_HELP_SUB_CLASSES, MSGCAT_HELP_SUPER_CLASSES, msgcat_message(), MSGCAT_SET_HELP, trigger_description::name, class_description::name, NO_ERROR, NULL, trigger_description::priority, class_description::query_spec, class_description::resolutions, object_description::shared, trigger_description::status, class_description::subs, class_description::supers, tr_is_trigger(), and class_description::triggers.

Referenced by db_fprint(), db_print(), and help_print_info().

Here is the caller graph for this function:

static char * obj_print_next_token ( char *  ptr,
char *  buf 
)
static

Definition at line 567 of file object_print.c.

References char_isspace(), and p.

Referenced by help_print_info().

Here is the caller graph for this function: