00001
00002
00004
00005 #include "stdafx.h"
00006 #include "nexpcsv.h"
00007 #include "FieldData.h"
00008
00009 #ifdef _DEBUG
00010 #undef THIS_FILE
00011 static char THIS_FILE[]=__FILE__;
00012 #define new DEBUG_NEW
00013 #endif
00014
00016
00018
00019 CFieldData::CFieldData()
00020 {
00021
00022 }
00023
00024 CFieldData::~CFieldData()
00025 {
00026
00027 }
00028
00029 CFieldData::CFieldData(const CFieldData& org){
00030 Copy(org);
00031 }
00032
00033 CFieldData &CFieldData::operator=(const CFieldData &org) {
00034 if (this == &org) return *this;
00035 Copy(org);
00036 return *this;
00037 }
00038
00039 void CFieldData::Copy(const CFieldData &org) {
00040 m_strName = org.m_strName;
00041 m_optCompute = org.m_optCompute;
00042 m_formula = org.m_formula;
00043 m_strHelpDescription = org.m_strHelpDescription;
00044 }
00045
00046 void CFieldData::Init(LNFormField &field)
00047 {
00048 m_strName = field.GetName();
00049 m_optCompute = field.GetComputeOption();
00050 m_formula = field.GetValueFormula();
00051 m_strHelpDescription = field.GetHelpDescription();
00052 }
00053