Changeset 580 for trunk/zoo-project/zoo-kernel/service_internal_otb.c
- Timestamp:
- Feb 12, 2015, 11:18:07 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service_internal_otb.c
r576 r580 1 /* *1 /* 2 2 * Author : Gérald FENOY 3 3 * … … 31 31 using namespace otb::Wrapper; 32 32 33 /** 34 * The ZooWatcher list 35 */ 33 36 WatcherListType m_WatcherList; 37 /** 38 * A pointer to the conf maps containing the main.cfg settings 39 */ 34 40 maps* m_Conf; 35 41 42 /** 43 * The command to create a ZooWatcher and add it to the global m_WatcherList 44 */ 36 45 class MyCommand : public itk::Command 37 46 { … … 40 49 public: 41 50 51 /** 52 * The method that defines the action to be taken by the command. 53 * 54 * @param caller an itk::Object pointer 55 * @param event an itk::EventObject pointer 56 */ 42 57 void Execute(itk::Object *caller, const itk::EventObject & event) 43 58 { … … 45 60 } 46 61 47 void Execute(const itk::Object * object, const itk::EventObject & event) 62 /** 63 * The method that defines the action to be taken by the command. 64 * Create a new ZooWatcher instance then add it to the m_WatcherList. 65 * 66 * @param caller a const itk::Object pointer 67 * @param event an itk::EventObject pointer 68 * @see ZooWatcher,ZooWatcher::SetConf 69 */ 70 void Execute(const itk::Object *caller, const itk::EventObject & event) 48 71 { 49 72 const AddProcessToWatchEvent* eventToWatch = dynamic_cast< const AddProcessToWatchEvent*> ( &event ); 50 73 std::string m_CurrentDescription = eventToWatch->GetProcessDescription(); 51 std::cerr << "err_service_zooo start ccalled." << m_CurrentDescription << std::endl;52 74 ZooWatcher * watch = new ZooWatcher(eventToWatch->GetProcess(), 53 75 eventToWatch->GetProcessDescription()); … … 56 78 } 57 79 58 59 60 80 }; 61 81 62 82 /** 83 * Replace all occurence of from by to in a str string 84 * 85 * @param str the string to transform 86 * @param from the string to replace 87 * @param to the string used as replacement 88 * @return the resulting string 89 */ 63 90 std::string ReplaceAll(std::string str, const std::string& from, const std::string& to) { 64 91 size_t start_pos = 0; … … 70 97 } 71 98 99 /** 100 * Load and run an OTB Application corresponding to the service by using inputs parameters. 101 * Define the m_Conf 102 * 103 * @param main_conf the conf maps containing the main.cfg settings 104 * @param request the map containing the HTTP request 105 * @param s the service structure 106 * @param real_inputs the maps containing the inputs 107 * @param real_outputs the maps containing the outputs 108 */ 72 109 int zoo_otb_support(maps** main_conf,map* request,service* s,maps **real_inputs,maps **real_outputs){ 73 110 maps* m=*main_conf;
Note: See TracChangeset
for help on using the changeset viewer.