資源簡介
封裝好的http client類,使用方便。

代碼片段和文件信息
/*!
?*?\file RyeolException.cpp
?*?\brief Implementations?of?Ryeol‘s?exception?classes.
?*?\author Jo?Hyeong-ryeol
?*?\since 2004.04.12
?*?\version $LastChangedRevision:?89?$
?* $LastChangedDate:?2006-01-30?11:20:19?+0900?(??30?1?2006)?$
?*
?*?This?file?contains?implementations?of?exception?classes.
?*?\n\n\n
?*?Copyright?©?2006?by?Jo?Hyeong-ryeol\n
?*?Permission?to?copy?use?modify?sell?and?distribute?this?software?is
?*?granted?provided?this?copyright?notice?appears?in?all?copies.
?*?This?software?is?provided?“as?is“?without?express?or?implied?warranty
?*?and?with?no?claim?as?to?its?suitability?for?any?purpose.
?*/
#include?“stdafx.h“
#include?“RyeolException.h“
#pragma?warning?(disable:?4290) //?avoids?‘C++?Exception?Specification?ignored‘?message
#pragma?warning?(disable:?4996) //?avoids?‘This?function?or?variable?may?be?unsafe‘?message
/*!
?*?\brief The?namespace?of?the?Ryeol‘s?library
?*
?*?This?is?the?namespace?for?source?codes?written?by?Jo?Hyeong-ryeol.
?*/
namespace?Ryeol?{
/*!
?*?This?is?a?default?constructor?with?no?argument.
?*/
errmsg_exceptionA::errmsg_exceptionA?(void)
throw?()
{
m_szErrMsg?=?NULL?;
}
/*!
?*?This?is?a?constructor?with?an?initial?error?message.
?*?If?memory?allocation?failed?the?error?message?will?not?be?copied
?*?and?Internal?error?message?will?point?to?NULL.
?*
?*?\param?szErrMsg [in]?An?initial?error?message.
?*/
errmsg_exceptionA::errmsg_exceptionA?(LPCSTR?szErrMsg)
throw?()
{
m_szErrMsg?=?NULL?;
if?(?szErrMsg?==?NULL?)
return?;
seterrmsg?(szErrMsg)?;
}
/*!
?*?This?is?a?copy?constructor.
?*?If?memory?allocation?failed?the?error?message?will?not?be?copied
?*?and?Internal?error?message?will?point?to?NULL.
?*
?*?\param?ee [in]?An?errmsg_exceptionA?object.
?*/
errmsg_exceptionA::errmsg_exceptionA?(const?errmsg_exceptionA?&?ee)
throw?()
{
m_szErrMsg?=?NULL?;
operator=(ee)?;
}
/*!
?*?This?is?a?default?destructor.
?*/
errmsg_exceptionA::~errmsg_exceptionA?(void)
throw?()
{
::free?(m_szErrMsg)?;
}
/*!
?*?This?method?returns?an?error?message.?It?guarantees?that?it?does
?*?not?return?NULL?(Returns?“NULL“?instead?of?NULL?pointer).?
?*?This?method?equals?to?the?errmsg?method?in?Ansi?version.
?*
?*?\return A?message?describing?the?error.
?*?\sa errmsg
?*/
LPCSTR?errmsg_exceptionA::what?(void)?const
throw?()
{
return?errmsg?()?;
}
/*!
?*?This?method?returns?an?error?message.?It?guarantees?that?it?does
?*?not?return?NULL?(Returns?“NULL“?instead?of?NULL?pointer).
?*
?*?\return A?message?describing?the?error.
?*/
LPCSTR?errmsg_exceptionA::errmsg?(void)?const
throw?()
{
if?(?m_szErrMsg?==?NULL?)
return?“NULL“?;
return?m_szErrMsg?;
}
/*!
?*?This?method?assigns?a?new?error?message.?If?memory?allocation?failed
?*?NULL?is?assigned.
?*
?*?\param?szErrMsg A?new?error?message.
?*/
void?errmsg_exceptionA::seterrmsg?(LPCSTR?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????11706??2007-08-07?01:26??ryeolhttpclient_src\RyeolException.cpp
?????文件????????6405??2007-08-07?01:26??ryeolhttpclient_src\RyeolException.h
?????文件??????309323??2007-08-07?01:26??ryeolhttpclient_src\RyeolHttpClient.cpp
?????文件??????101610??2007-08-07?01:26??ryeolhttpclient_src\RyeolHttpClient.h
?????文件???????67003??2007-08-07?01:26??ryeolhttpclient_src\SafeInt.hpp
評論
共有 條評論