コード例 #1
0
void
RoboCompCommonBehavior::__writeParameterList(::IceInternal::BasicStream* __os, const ::RoboCompCommonBehavior::ParameterList& v)
{
    __os->writeSize(::Ice::Int(v.size()));
    ::RoboCompCommonBehavior::ParameterList::const_iterator p;
    for(p = v.begin(); p != v.end(); ++p)
    {
        __os->write(p->first);
        p->second.__write(__os);
    }
}
コード例 #2
0
void
RoboCompCommonBehavior::__readParameterList(::IceInternal::BasicStream* __is, ::RoboCompCommonBehavior::ParameterList& v)
{
    ::Ice::Int sz;
    __is->readSize(sz);
    while(sz--)
    {
        ::std::pair<const  ::std::string, ::RoboCompCommonBehavior::Parameter> pair;
        __is->read(const_cast< ::std::string&>(pair.first));
        ::RoboCompCommonBehavior::ParameterList::iterator __i = v.insert(v.end(), pair);
        __i->second.__read(__is);
    }
}