Skip to content

File loadjava.cpp

FileList > cubrid > src > executables > loadjava.cpp

Go to the source code of this file

  • #include "config.h"
  • #include <cassert>
  • #include <string>
  • #include <regex>
  • #include <filesystem>
  • #include "cubrid_getopt.h"
  • #include "error_code.h"
  • #include "message_catalog.h"
  • #include "utility.h"
  • #include "databases_file.h"

Namespaces

Type Name
namespace regex_constants

Public Attributes

Type Name
std::string Src_class

Public Static Attributes

Type Name
const std::string DYNAMIC_PATH = "java"
char * Dbname = [**NULL**](freelistheap_8h.md#define-null)
int Force_overwrite = [**false**](broker__monitor_8c.md#function-timeout)
const std::string JAVA_PACKAGE_PATTERN = "^([a-[**z\_**](broker__monitor_8c.md#function-timeout)]{1}[[**a**](broker__monitor_8c.md#function-timeout)-[**z0**](broker__monitor_8c.md#function-timeout)-9[**\_**](broker__monitor_8c.md#function-timeout)]\*(\\.[[**a**](broker__monitor_8c.md#function-timeout)-[**z\_**](broker__monitor_8c.md#function-timeout)]{1}[[**a**](broker__monitor_8c.md#function-timeout)-[**z0**](broker__monitor_8c.md#function-timeout)-9[**\_**](broker__monitor_8c.md#function-timeout)]\*)\*)$"
std::string Path
char * Program_name = [**NULL**](freelistheap_8h.md#define-null)
fs::path Root
const std::string STATIC_PATH = "java\_static"
std::string package_path

Public Functions

Type Name
std::regex Java_package_reg (JAVA_PACKAGE_PATTERN, ECMAScript|icase| optimize)
int main (int argc, char * argv)

Public Static Functions

Type Name
const std::string SEPARATOR_STRING ("/")
int check_arguments ()
int check_overwrite (const std::string & package_path, const std::string & class_file_name)
int copy_class_file (const fs::path & src_path, const fs::path & dest_path)
int create_package_directories (const fs::path & dir_path)
int do_load_java ()
int parse_argument (int argc, char * argv)
void usage (void)

Macros

Type Name
define JAVA_DIR "java"
define JAVA_STATIC_DIR "java\_static"
define SEPERATOR "/"

Public Attributes Documentation

variable Src_class

std::string Src_class;

Public Static Attributes Documentation

variable DYNAMIC_PATH

const std::string DYNAMIC_PATH;

variable Dbname

char* Dbname;

variable Force_overwrite

int Force_overwrite;

variable JAVA_PACKAGE_PATTERN

const std::string JAVA_PACKAGE_PATTERN;

variable Path

std::string Path;

variable Program_name

char* Program_name;

variable Root

fs::path Root;

variable STATIC_PATH

const std::string STATIC_PATH;

variable package_path

std::string package_path;

Public Functions Documentation

function Java_package_reg

std::regex Java_package_reg (
    JAVA_PACKAGE_PATTERN,
    ECMAScript | icase | optimize
) 

function main

int main (
    int argc,
    char * argv
) 

Public Static Functions Documentation

function SEPARATOR_STRING

static const std::string SEPARATOR_STRING (
    "/"
) 

function check_arguments

static int check_arguments () 

function check_overwrite

static int check_overwrite (
    const std::string & package_path,
    const std::string & class_file_name
) 

function copy_class_file

static int copy_class_file (
    const fs::path & src_path,
    const fs::path & dest_path
) 

function create_package_directories

static int create_package_directories (
    const fs::path & dir_path
) 

function do_load_java

static int do_load_java () 

function parse_argument

static int parse_argument (
    int argc,
    char * argv
) 

function usage

static void usage (
    void
) 

Macro Definition Documentation

define JAVA_DIR

#define JAVA_DIR `"java"`

define JAVA_STATIC_DIR

#define JAVA_STATIC_DIR `"java_static"`

define SEPERATOR

#define SEPERATOR `"/"`


The documentation for this class was generated from the following file cubrid/src/executables/loadjava.cpp