Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/136.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/backbone.js/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ CORBA::短值检查_C++_Corba_Short - Fatal编程技术网

C++ CORBA::短值检查

C++ CORBA::短值检查,c++,corba,short,C++,Corba,Short,我有一个API,我声明了一个CORBA缩写作为方法输入参数 char* WirelessServ::allocateNewService( const char* csproductlineName, CORBA::Long clAccountNo, CORBA::Short cshServiceNoCategoryFlag, ) IT_THROW_DECL(( CORBA::SystemException,

我有一个API,我声明了一个CORBA缩写作为方法输入参数

char* WirelessServ::allocateNewService(
        const char*  csproductlineName,
        CORBA::Long  clAccountNo,
        CORBA::Short cshServiceNoCategoryFlag,
    ) IT_THROW_DECL((
        CORBA::SystemException, 
        ArtixToOrbix::GenericException
    ))
现在我想检查“cshServiceNoCategoryFlag”参数中的输入值是否实际为NULL,或者它是否包含0(数字零)


但空短值似乎也被视为0(零)。请告知。

当CORBA实现调用
分配服务
操作时,每个参数都有一个有效值,对于
CORBA::Short
这是一个数值,例如
0
,它不能为
NULL


看起来您正在使用一个古老的CORBA实现,支持IDL到C++11语言映射的实现使用
int16
作为
short
的参数类型,而
std::string
作为
string

的参数类型不清楚您的要求,因为NULL被定义为0(
#define NULL((void*)0)
),那么它是相同的值。