ugkfielddefn.h
来自「linux下一款GIS程序源码」· C头文件 代码 · 共 58 行
H
58 行
// 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 + =
减小字号Ctrl + -
显示快捷键?