»õ ÆÄÀÏ |
| | |
| | | #pragma once |
| | | |
| | | |
| | | |
| | | #include "akCoreLinker.h" |
| | | #include <vector> |
| | | |
| | | struct AKCORE_DLLSPEC _Attribute |
| | | { |
| | | _Attribute() |
| | | { |
| | | memset(Title , 0, sizeof(char)*128); |
| | | memset(Attribute , 0, sizeof(char)*128); |
| | | memset(Value , 0, sizeof(char)*128); |
| | | } |
| | | char Title[128]; |
| | | char Attribute[128]; |
| | | char Value[128]; |
| | | }; |
| | | |
| | | struct AKCORE_DLLSPEC _Title |
| | | { |
| | | _Title(char* title) |
| | | { |
| | | strcpy(Title, title); |
| | | }; |
| | | bool compare(char* title) |
| | | { |
| | | if(strcmp(title, Title) == 0 && strlen(title) == strlen(Title)) |
| | | { |
| | | return true; |
| | | } |
| | | return false; |
| | | }; |
| | | void clear() |
| | | { |
| | | memset(Title, 0, sizeof(char)*128); |
| | | }; |
| | | char Title[128]; |
| | | }; |
| | | |
| | | namespace akCore |
| | | { |
| | | class AKCORE_DLLSPEC CakFileMgr |
| | | { |
| | | public: |
| | | CakFileMgr(void); |
| | | ~CakFileMgr(void); |
| | | |
| | | //íì´í ì¤ì (OpenFile()í¨ìì MakeFile()í¨ì를 í¸ì¶íë©´ íì´íì
í
ì Nullì´ ëë¤) |
| | | void SetTitle(char* title); |
| | | |
| | | //ì°ê¸° ê´ë ¨ |
| | | //íì´íì ì íë¤. |
| | | bool SetAttribute(char* Attribute, int value); |
| | | bool SetAttribute(char* Attribute, double value); |
| | | bool SetAttribute(char* Attribute, char* value); |
| | | bool SetAttribute(char* Attribute, float value); |
| | | //ì°ê¸° ë²í¼ì ì ì¥ë ë°ì´í°ë¥¼ íì¼ë¡ ì ì¥ |
| | | bool MakeFile(char* filepath); |
| | | |
| | | |
| | | //ì½ê¸° ê´ë ¨ |
| | | //íì¼ ì´ê¸°(ì°ê¸°ì¤ë¹ì¤ì´ìë¤ë©´ ì°ê¸° ë²í¼ë ì´ê¸°í ëë¤) |
| | | bool OpenFile(char* filepath); |
| | | bool GetAttribute(char* Attribute, int& value); |
| | | bool GetAttribute(char* Attribute, double& value); |
| | | bool GetAttribute(char* Attribute, char* value); |
| | | bool GetAttribute(char* Attribute, float& value); |
| | | |
| | | private: |
| | | //ë¹ ë¥¸ 찾기를 ìí´ì ì ì¥ë ë°ì´í° ì ë ¬ |
| | | void DataSort(); |
| | | char m_Title[128]; |
| | | std::vector<_Attribute> m_data; |
| | | |
| | | char* m_buffer; |
| | | int m_fastIndex; |
| | | }; |
| | | } |