chead1.sct
来自「c#设计模式WithCla」· SCT 代码 · 共 37 行
SCT
37 行
/* struct: CLASS_NAME ANSI C */
#ifndef __$CAPITALIZE_ALL$TRUNCATE_EIGHT$CLASS_NAME$_H /*Required for current struct */
#define __$CAPITALIZE_ALL$TRUNCATE_EIGHT$CLASS_NAME$_H
[#include <INCLUDE_FILE> /*Required for include files */
]
[ /*Required for 1:1 associated struct */
#ifndef __$CAPITALIZE_ALL$TRUNCATE_EIGHT$ASSOCIATION_ONE_CLASS$_H
#include "$TRUNCATE_EIGHT$ASSOCIATION_ONE_CLASS.h"
#endif ]
[ /*Required for 1:1 aggregation (part) struct */
#ifndef __$CAPITALIZE_ALL$TRUNCATE_EIGHT$AGGREGATION_ONE_CLASS$_H
#include "$TRUNCATE_EIGHT$AGGREGATION_ONE_CLASS$.h"
#endif ]
[ /*Required for 1:M associated struct */
#ifndef __$CAPITALIZE_ALL$TRUNCATE_EIGHT$ASSOCIATION_MANY_CLASS$_H
#include "$TRUNCATE_EIGHT$ASSOCIATION_MANY_CLASS$.h"
#endif ]
[ /*Required for 1:M aggregation (part) struct */
#ifndef __$CAPITALIZE_ALL$TRUNCATE_EIGHT$AGGREGATION_MANY_CLASS$_H
#include "$TRUNCATE_EIGHT$AGGREGATION_MANY_CLASS$.h"
#endif ]
struct CLASS_NAME
{ [ATTRIBUTE_TYPE ATTRIBUTE_NAME$;]
[struct ASSOCIATION_ONE_CLASS$* ASSOCIATION_ONE_NAME$;]
[struct AGGREGATION_ONE_CLASS AGGREGATION_ONE_NAME$;]
[struct ASSOCIATION_MANY_CLASS$* ASSOCIATION_MANY_NAME LITERAL_SYMBOL[6 LITERAL_SYMBOL];]
[struct AGGREGATION_MANY_CLASS AGGREGATION_MANY_NAME LITERAL_SYMBOL[6 LITERAL_SYMBOL];]
};
extern void CLASS_NAME$_init(struct CLASS_NAME * p$CLASS_NAME );
[
extern CPP_OPERATION_STATIC OPERATION_RETURN_TYPE CLASS_NAME$_$OPERATION_NAME ( C_OPERATION_PARAMETERS ) ; ]
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?