PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
vtkPlusVersionCommand.h
Go to the documentation of this file.
1 /*=Plus=header=begin======================================================
2  Program: Plus
3  Copyright (c) Laboratory for Percutaneous Surgery. All rights reserved.
4  See License.txt for details.
5 =========================================================Plus=header=end*/
6 
7 #ifndef __vtkPlusVersionCommand_h
8 #define __vtkPlusVersionCommand_h
9 
10 #include "vtkPlusServerExport.h"
11 
12 #include "vtkPlusCommand.h"
13 
19 class vtkPlusServerExport vtkPlusVersionCommand : public vtkPlusCommand
20 {
21 public:
22 
23  static vtkPlusVersionCommand* New();
25  virtual vtkPlusCommand* Clone() { return New(); }
26 
28  virtual PlusStatus Execute();
29 
31  virtual void GetCommandNames(std::list<std::string>& cmdNames);
32 
34  virtual std::string GetDescription(const std::string& commandName);
35 
36  void SetNameToVersion();
37 
38 protected:
40  virtual ~vtkPlusVersionCommand();
41 
42 private:
44  void operator=(const vtkPlusVersionCommand&);
45 };
46 
47 
48 #endif
virtual std::string GetDescription(const std::string &commandName)=0
virtual PlusStatus Execute()=0
This is an abstract superclass for commands in the OpenIGTLink network interface for Plus.
igsioStatus PlusStatus
Definition: PlusCommon.h:40
virtual void GetCommandNames(std::list< std::string > &cmdNames)=0
virtual vtkPlusCommand * Clone()
This command sends and receives version information to/from a client.