本文整理汇总了C++中POV_EXCEPTION_CODE函数的典型用法代码示例。如果您正苦于以下问题:C++ POV_EXCEPTION_CODE函数的具体用法?C++ POV_EXCEPTION_CODE怎么用?C++ POV_EXCEPTION_CODE使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了POV_EXCEPTION_CODE函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: POVMSObject_Merge
void POVMS_Object::Merge(POVMS_Object& source)
{
int err;
err = POVMSObject_Merge(&source.data, &data);
if(err != pov_base::kNoErr)
throw POV_EXCEPTION_CODE(err);
}
示例2: POVMSUtil_SetType
void POVMS_Object::SetType(POVMSType key, POVMSType value)
{
int err;
err = POVMSUtil_SetType(&data, key, value);
if(err != pov_base::kNoErr)
throw POV_EXCEPTION_CODE(err);
}
示例3: POVMSObject_Remove
void POVMS_Object::Remove(POVMSType key)
{
int err;
err = POVMSObject_Remove(&data, key);
if(err != pov_base::kNoErr)
throw POV_EXCEPTION_CODE(err);
}
示例4: POVMSObject_Delete
POVMS_Object::~POVMS_Object()
{
int err;
err = POVMSObject_Delete(&data);
if(err != pov_base::kNoErr)
throw POV_EXCEPTION_CODE(err);
}
示例5: POVMSObject_New
POVMS_Object::POVMS_Object(POVMSType objclass)
{
int err;
err = POVMSObject_New(&data, objclass);
if(err != pov_base::kNoErr)
throw POV_EXCEPTION_CODE(err);
}
示例6: POVMS_Object
POVMS_Message::POVMS_Message(POVMS_Object& convert, POVMSType msgclass, POVMSType msgid) : POVMS_Object(convert)
{
int err;
err = POVMSMsg_SetupMessage(&data, msgclass, msgid);
if(err != pov_base::kNoErr)
throw POV_EXCEPTION_CODE(err);
}
示例7: POVMSMsg_SetDestinationAddress
void POVMS_Message::SetDestinationAddress(POVMSAddress addr)
{
int err;
err = POVMSMsg_SetDestinationAddress(&data, addr);
if(err != pov_base::kNoErr)
throw POV_EXCEPTION_CODE(err);
}
示例8: POVMSAttrList_Clear
void POVMS_List::Clear()
{
int err;
err = POVMSAttrList_Clear(&data);
if(err != pov_base::kNoErr)
throw POV_EXCEPTION_CODE(err);
}
示例9: POVMSUtil_SetUCS2String
void POVMS_Object::SetUCS2String(POVMSType key, const POVMSUCS2 *str)
{
int err;
err = POVMSUtil_SetUCS2String(&data, key, str);
if(err != pov_base::kNoErr)
throw POV_EXCEPTION_CODE(err);
}
示例10: POVMSAttrList_RemoveNth
void POVMS_List::RemoveNth(int index)
{
int err;
err = POVMSAttrList_RemoveNth(&data, index);
if(err != pov_base::kNoErr)
throw POV_EXCEPTION_CODE(err);
}
示例11: POVMSAttrList_Copy
POVMS_List::POVMS_List(const POVMS_List& source)
{
int err;
err = POVMSAttrList_Copy(&source.data, &data);
if(err != pov_base::kNoErr)
throw POV_EXCEPTION_CODE(err);
}
示例12: POVMSAttrList_Delete
POVMS_List::~POVMS_List()
{
int err;
err = POVMSAttrList_Delete(&data);
if(err != pov_base::kNoErr)
throw POV_EXCEPTION_CODE(err);
}
示例13: POVMSAttr_Set
void POVMS_Attribute::Set(POVMSType type, const void *data, int datasize)
{
int err;
err = POVMSAttr_Set(&this->data, type, data, datasize);
if(err != pov_base::kNoErr)
throw POV_EXCEPTION_CODE(err);
}
示例14: POVMSAttr_Delete
POVMS_Attribute::~POVMS_Attribute()
{
int err;
err = POVMSAttr_Delete(&data);
if(err != pov_base::kNoErr)
throw POV_EXCEPTION_CODE(err);
}
示例15: POVMSAttr_Copy
POVMS_Attribute::POVMS_Attribute(const POVMS_Attribute& source)
{
int err;
err = POVMSAttr_Copy(&source.data, &data);
if(err != pov_base::kNoErr)
throw POV_EXCEPTION_CODE(err);
}