Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

major.h

Go to the documentation of this file.
00001 // major.h: interface for the major class.
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_)

Generated on Mon Oct 22 20:18:45 2001 for University People Management System by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001