Ejemplo n.º 1
0
int dpMain::SearchBreadthFirst(int _max_nodes, int _max_goals)
{
	if(!start_node)
	{
		cerr << "dpMain error: start node not set" << endl;
		return -1;
	}
	dpNode* node = start_node;
	while(node)
	{
		if(node->open(_max_nodes, _max_goals)) break;
		remove_node_single(node);
		node = next_breadth(node);
		DumpAll(cerr);
	}
	return 0;
}
//----------------------------------------------------------------------------
void DumpAll(const QtSoapType& type, int indent=0)
{
  if(indent==0)
    {
    QString s;
    s = "Dumping: " + type.typeName() + " " + type.name().name() + " " + type.value().toString();
    qDebug() << s;
    indent = 4;
    }
  for (int i = 0; i < type.count() ; i++)
    {
    QString s;
    s = QString(indent, ' ') + type[i].typeName() + "  " + type[i].name().name()  + " Value: " + type[i].value().toString();
    qDebug() << s;
    if(type[i].count()>0)
      DumpAll(type[i], indent+4);
    }
}
Ejemplo n.º 3
0
//----------------------------------------------------------------------------
QList<ctkDicomAppHosting::ObjectLocator> ctkDicomExchangeService::getData(
    const QList<QUuid>& objectUUIDs,
    const QList<QString>& acceptableTransferSyntaxUIDs, bool includeBulkData)
{
  //Q_D(ctkDicomService);
  QList<QtSoapType*> list;

  list << new ctkDicomSoapArrayOfUUIDS("objects",objectUUIDs);
  list << new ctkDicomSoapArrayOfStringType("UID","acceptableTransferSyntaxes", acceptableTransferSyntaxUIDs);
  list << new ctkDicomSoapBool("includeBulkData", includeBulkData);
  const QtSoapType & result = submitSoapRequest("GetData",list);
//QtSoapType *tt;
//  list << (tt=new ctkDicomSoapArrayOfUUIDS("uuids",objectUUIDs));
extern void DumpAll(const QtSoapType& type, int indent=0);
//DumpAll(*tt);
//  list << (tt=new ctkDicomSoapBool("includeBulkData", includeBulkData));
//DumpAll(*tt);
//  const QtSoapType & result = submitSoapRequest("getDataAsFile",list);
DumpAll(result); //xxx

  return ctkDicomSoapArrayOfObjectLocators::getArray(result);
}