{ "HPP": { "prefix": "HPP", "body": [ "#ifndef ${TM_FILENAME/$|(^|[.])([^.]+)/${1:+_}${2:/upcase}/g}", "# define ${TM_FILENAME/$|(^|[.])([^.]+)/${1:+_}${2:/upcase}/g}", "", "class ${1:${TM_FILENAME_BASE/[\\.]/_/g}}", "{", "private:", "\t/* data */", "", "public:", "\t${1:${TM_FILENAME_BASE/[\\.]/_/g}}();", "\t${1:${TM_FILENAME_BASE/[\\.]/_/g}}(const ${1:${TM_FILENAME_BASE/[\\.]/_/g}}& ref);", "\t~${1:${TM_FILENAME_BASE/[\\.]/_/g}}();", "", "\t${1:${TM_FILENAME_BASE/[\\.]/_/g}}&\toperator=(const ${1:${TM_FILENAME_BASE/[\\.]/_/g}}& ref);", "};", "", "#endif", "" ], "description": "[ kyoulee@student.42seoul.kr ] make class of {FILE_NAME}.hpp" }, "CLASS_BASE": { "prefix": "CLASS_BASE", "body": [ "class ${1:${TM_FILENAME_BASE/[\\.]/_/g}}", "{", "private:", "\t/* data */", "", "public:", "\t${1:${TM_FILENAME_BASE/[\\.]/_/g}}();", "\t${1:${TM_FILENAME_BASE/[\\.]/_/g}}(const ${1:${TM_FILENAME_BASE/[\\.]/_/g}}& ref);", "\t~${1:${TM_FILENAME_BASE/[\\.]/_/g}}();", "", "\t${1:${TM_FILENAME_BASE/[\\.]/_/g}}&\toperator=(const ${1:${TM_FILENAME_BASE/[\\.]/_/g}}& ref);", "};" ], "description": "[ kyoulee@student.42seoul.kr ] make class of {NAME}" }, "CPP": { "prefix": "CPP", "body": [ "#include ", "#include ", "", "#include \"${TM_FILENAME_BASE}.hpp\"", "", "${1:${TM_FILENAME_BASE/[\\.]/_/g}}::${1:${TM_FILENAME_BASE/[\\.]/_/g}}()", "{", "\tstd::cout << std::setw(15) << \"[${1:${TM_FILENAME_BASE/[\\.]/_/g}}] \" << \"create!!\" << std::endl;", "}", "", "${1:${TM_FILENAME_BASE/[\\.]/_/g}}::${1:${TM_FILENAME_BASE/[\\.]/_/g}}(const ${1:${TM_FILENAME_BASE/[\\.]/_/g}}& ref)", "{", "\t*this=ref;", "\tstd::cout << std::setw(15) << \"[${1:${TM_FILENAME_BASE/[\\.]/_/g}}] \" << \"copy!!\" << std::endl;", "}", "", "${1:${TM_FILENAME_BASE/[\\.]/_/g}}::~${1:${TM_FILENAME_BASE/[\\.]/_/g}}()", "{", "\tstd::cout << std::setw(15) << \"[${1:${TM_FILENAME_BASE/[\\.]/_/g}}] \" << \"delete!!\" << std::endl;", "}", "", "${1:${TM_FILENAME_BASE/[\\.]/_/g}}&\t${1:${TM_FILENAME_BASE/[\\.]/_/g}}::operator=(const ${1:${TM_FILENAME_BASE/[\\.]/_/g}}& ref)", "{", "\t*this=ref;", "\tstd::cout << std::setw(15) << \"[${1:${TM_FILENAME_BASE/[\\.]/_/g}}] \" << \"operator=!!\" << std::endl;", "\treturn (*this);", "}", "" ], "description": "[ kyoulee@student.42seoul.kr ] make Orthodox canonical of {FILE_NAME.cpp}" }, "ORTHODOX": { "prefix": "ORTHODOX", "body": [ "${1:${TM_FILENAME_BASE/[\\.]/_/g}}::${1:${TM_FILENAME_BASE/[\\.]/_/g}}()", "{", "\tstd::cout << std::setw(15) << \"[${1:${TM_FILENAME_BASE/[\\.]/_/g}}] \" << \"create!!\" << std::endl;", "}", "", "${1:${TM_FILENAME_BASE/[\\.]/_/g}}::${1:${TM_FILENAME_BASE/[\\.]/_/g}}(const ${1:${TM_FILENAME_BASE/[\\.]/_/g}}& ref)", "{", "\t*this=ref;", "\tstd::cout << std::setw(15) << \"[${1:${TM_FILENAME_BASE/[\\.]/_/g}}] \" << \"copy!!\" << std::endl;", "}", "", "${1:${TM_FILENAME_BASE/[\\.]/_/g}}::~${1:${TM_FILENAME_BASE/[\\.]/_/g}}()", "{", "\tstd::cout << std::setw(15) << \"[${1:${TM_FILENAME_BASE/[\\.]/_/g}}] \" << \"delete!!\" << std::endl;", "}", "", "${1:${TM_FILENAME_BASE/[\\.]/_/g}}&\t${1:${TM_FILENAME_BASE/[\\.]/_/g}}::operator=(const ${1:${TM_FILENAME_BASE/[\\.]/_/g}}& ref)", "{", "\t*this=ref;", "\tstd::cout << std::setw(15) << \"[${1:${TM_FILENAME_BASE/[\\.]/_/g}}] \" << \"operator=!!\" << std::endl;", "\treturn (*this);", "}", "" ], "description": "[ kyoulee@student.42seoul.kr ] make Orthodox canonical of {NAME}" } }