科尔巴概念 [英] Corba concepts

查看:79
本文介绍了科尔巴概念的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到一个代码:

I am coming across a code:

CORBA::Any anyString;
anyString <<= m_structReturn.structReturnOnly.strAssessmentType;


有人可以清楚地向我解释上述含义(那个<< =运算符)吗?

提前谢谢,

Deepak


Can someone explain to me the meaning of the above lucidly (that <<= operator)?

Thanks In advance,

Deepak

推荐答案

距离我使用C ++已经好几年了,但是如果我没记错的话...

<<是左移运算符,但在这种情况下,它是用于流的插入运算符.从本质上说,"anyString等于其自身加上此字符串末尾附加的其他字符串".编写代码的另一种方法是:

It''s been some years since I did C++, but if I recall correctly...

The << is the shift left operator, but in this case, it''s an insertion operator used for streams. It''s essentially saying "anyString is equal to itself plus this other string appended to the end of it". Another way to write the code is:

anyString = anyString << m_structReturn.structReturnOnly.strAssessmentType;






这篇关于科尔巴概念的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆