📄 ugkfielddefn.h
字号:
// ugkfielddefn.h: interface for the UGKFieldDefn class.///************************************************************************//* UGKFieldDefn *//************************************************************************//** * Definition of an attribute of an UGKFeatureDefn. * 一种特定字段的定义 */#ifndef UGKFieldDefn_H#define UGKFieldDefn_H#include "ugkglobal.h"class UGKFieldDefn {private: char *pszName; //字段名 UGKFieldType eType; //字段类型 UGKFieldType为枚举类型 UGKJustification eJustify; //排列位置,靠左还是靠右 int nWidth; //字段宽度 /* zero is variable */ int nPrecision; UGKField uDefault; //字段值 void Initialize( const char *, UGKFieldType );public: UGKFieldDefn( const char *, UGKFieldType ); UGKFieldDefn( UGKFieldDefn * ); virtual ~UGKFieldDefn(); void SetName( const char * ); const char *GetNameRef() { return pszName; } UGKFieldType GetType() { return eType; } void SetType( UGKFieldType eTypeIn ) { eType = eTypeIn;} static const char *GetFieldTypeName( UGKFieldType ); UGKJustification GetJustify() { return eJustify; } void SetJustify( UGKJustification eJustifyIn ) { eJustify = eJustifyIn; } int GetWidth() { return nWidth; } void SetWidth( int nWidthIn ) { nWidth = (0 > nWidthIn) ? 0 : nWidthIn; } int GetPrecision() { return nPrecision; } void SetPrecision( int nPrecisionIn ) { nPrecision = nPrecisionIn; } void Set( const char *, UGKFieldType, int = 0, int = 0,UGKJustification = OJUndefined ); void SetDefault( const UGKField * ); const UGKField *GetDefaultRef() { return &uDefault; }};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -