Logo Search packages:      
Sourcecode: gdcm version File versions  Download package

TestCommand.cxx

/*=========================================================================

  Program: GDCM (Grassroots DICOM). A DICOM library
  Module:  $URL$

  Copyright (c) 2006-2010 Mathieu Malaterre
  All rights reserved.
  See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.

     This software is distributed WITHOUT ANY WARRANTY; without even
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
     PURPOSE.  See the above copyright notice for more information.

=========================================================================*/
#include "gdcmCommand.h"
#include "gdcmEvent.h"
#include "gdcmSmartPointer.h"

using gdcm::SmartPointer;

struct Watcher {};

void foo(gdcm::Command *c)
{
  c->Execute((gdcm::Subject*)0, gdcm::AnyEvent() );
}

int TestCommand(int argc, char *argv[])
{
  SmartPointer<gdcm::MemberCommand<Watcher> > mc = gdcm::MemberCommand<Watcher>::New();
  foo(mc);
  SmartPointer<gdcm::SimpleMemberCommand<Watcher> > smc = gdcm::SimpleMemberCommand<Watcher>::New();
  foo(smc);
  return 0;
}


Generated by  Doxygen 1.6.0   Back to index