staff::DataObject my_controllerWrapper::GetServiceDescription() const
{
  staff::DataObject tServiceDescription;

  tServiceDescription.Create("ServiceDescription");
  tServiceDescription.DeclareDefaultNamespace("http://tempui.org/staff/service-description");

  tServiceDescription.CreateChild("Name", m_sName);
  tServiceDescription.CreateChild("Description", m_sDescr);

  tServiceDescription.AppendChild(GetOperations());

  return tServiceDescription;
}
Ejemplo n.º 2
0
//~~ std::map<wxString, wxString> GetVirtualOperations() [AdeClass] ~~

std::map<wxString, wxString> retVal;
AdeOperations* theOperations = GetOperations();
if (theOperations)
{
	for (AdeElementIterator it = theOperations->begin(); it != theOperations->end(); ++it)
	{
		AdeModelElement* anElement = it.CreateNewElement();
		wxASSERT(anElement);

		AdeOperationBase* anOperation = dynamic_cast<AdeOperationBase*>(anElement);
		wxASSERT_MSG(anOperation, "the operations folder should only contain operations");
		if (anOperation && anOperation->IsVirtual())
			retVal[anOperation->GetSignature()] = anOperation->GetFileName().GetFullPath();

		delete anElement;
	}
}

delete theOperations;

return retVal;