MedProfile::MedProfile( soap * pSoap, const std::string& name, const std::string& token ) { d = soap_new_tt__Profile(pSoap); d->Name = name; d->token = token; d->fixed = static_cast<bool*>(soap_malloc(pSoap, sizeof(bool))); *d->fixed = false; }
tt__Profile* ServiceContext::getProfile(struct soap* soap, const std::string & token) { tt__Profile* profile = soap_new_tt__Profile(soap); profile->Name = token; profile->token = token; profile->VideoSourceConfiguration = getVideoSourceCfg(soap, token); profile->VideoEncoderConfiguration = getVideoEncoderCfg(soap, token); return profile; }