#pragma once #include "define.h" #include using namespace std; #define IN #define OUT typedef unsigned char byte; class DLL_DECLARE CVersionInfo { public: CVersionInfo(void); CVersionInfo( const CVersionInfo& obj ) { for( int i = 0 ; i < MAX_VERSION_COUNT; i++ ) m_byVer[i] = obj.m_byVer[i]; } ~CVersionInfo(void); private: byte m_byVer[MAX_VERSION_COUNT]; public: byte GetVersion( int nNum ); bool SetVersion( int nNum, byte byVer ); unsigned int GetTotalVersion(); void Init(); bool SetVersionFromString( char* pszVersion ); //01.02.03 °ú °°Àº ŸÀÔÀÇ ½ºÆ®¸µ¹öÀüÀ¸·Î ¹öÀü¼¼ÆÃ bool GetStringVersion( char* OUT pszVersion, int nSize ); public: CVersionInfo& operator=( const CVersionInfo& obj ) { for( int i = 0 ; i < MAX_VERSION_COUNT; i++ ) m_byVer[i] = obj.m_byVer[i]; return *this; } };