00001
00002
00004
00005 #if !defined(AFX_MAJOR_H__65721E15_49A8_4B15_A42C_7B4BA20940EA__INCLUDED_)
00006 #define AFX_MAJOR_H__65721E15_49A8_4B15_A42C_7B4BA20940EA__INCLUDED_
00007
00008 #if _MSC_VER > 1000
00009 #pragma once
00010 #endif // _MSC_VER > 1000
00011
00012 #include "field.h"
00013
00014 class major : public field
00015 {
00016 public:
00017 major();
00018 virtual ~major();
00019 major(const major& major);
00020 const major& operator=(const major& rhs);
00021 bool operator==(const major& rhs);
00022 bool operator<(const major& m);
00023
00024 public:
00025 void setMajor(string m);
00026 inline string getMajorStr() const
00027 {
00028 return m_major;
00029 }
00030
00031 inline void setMajorStr(const string& m)
00032 {
00033 m_major = m;
00034 }
00035
00036 string ToParse(int fld);
00037 string ToString();
00038 string ToFileFmt();
00039
00040
00041 protected:
00042 void copy(const major& m);
00043 string m_major;
00044
00045 };
00046
00047 #endif // !defined(AFX_MAJOR_H__65721E15_49A8_4B15_A42C_7B4BA20940EA__INCLUDED_)