// ABCMagazine.h: interface for the ABCMagazine class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_ABCMAGAZINE_H__839EB996_C851_11D3_9D2F_0000F80788FD__INCLUDED_) #define AFX_ABCMAGAZINE_H__839EB996_C851_11D3_9D2F_0000F80788FD__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "ABCOrder.h" #include "ABCCommon.h" /* ABCMagazine knows how to - write a magazine order, - read a magazine order - process a magazine order. */ class ABCMagazine : public ABCOrder { public: ABCMagazine(); virtual ~ABCMagazine(); bool AddOrder( unsigned int uiPrice, const char *pszName, const char *pszAuthor, const char *pszExpirationDate ); private: // // Overridden functions. // void WriteObject(); void ReadObject(); abc_status ProcessOrder(); // // Magazine attributes // char m_szExpirationDate[ABCMAX_STRING_LEN]; }; #endif // !defined(AFX_ABCMAGAZINE_H__839EB996_C851_11D3_9D2F_0000F80788FD__INCLUDED_)