00001 // ForceVectorPoint.h: interface for the CForceVectorPoint class. 00002 // 00004 00005 #if !defined(AFX_FORCEVECTORPOINT_H__DF4EECD7_5E1D_456D_AA07_ED1DCB26054B__INCLUDED_) 00006 #define AFX_FORCEVECTORPOINT_H__DF4EECD7_5E1D_456D_AA07_ED1DCB26054B__INCLUDED_ 00007 00008 #if _MSC_VER > 1000 00009 #pragma once 00010 #endif // _MSC_VER > 1000 00011 00012 class CForceVectorPoint 00013 { 00014 public: 00015 CForceVectorPoint(double time=0.0, double value=0.0, int chemNumber=0); 00016 virtual ~CForceVectorPoint(); 00017 int GetChemNumber() {return m_iChemNumber;} 00018 double GetTime() {return m_dTime;} 00019 double GetValue() {return m_dValue;} 00020 void SetChemNumber(int chemNumber) {m_iChemNumber = chemNumber;} 00021 void SetTime(double time) {m_dTime = time;} 00022 void SetValue(double value) {m_dValue = value;} 00023 class CForceVectorPointComparator 00024 { 00025 public: 00026 CForceVectorPointComparator() {return;} 00027 virtual ~CForceVectorPointComparator() {return;} 00028 bool operator()(CForceVectorPoint *fp1, CForceVectorPoint *fp2) 00029 { 00030 return fp1->GetTime() < fp2->GetTime(); 00031 } 00032 }; 00033 private: 00034 int m_iChemNumber; 00035 double m_dTime; 00036 double m_dValue; 00037 }; 00038 00039 #endif // !defined(AFX_FORCEVECTORPOINT_H__DF4EECD7_5E1D_456D_AA07_ED1DCB26054B__INCLUDED_)