00001 /* 00002 * This program is free software; you can redistribute it and/or modify 00003 * it under the terms of the GNU General Public License as published by 00004 * the Free Software Foundation; either version 2 of the License, or 00005 * (at your option) any later version. 00006 * 00007 * This program is distributed in the hope that it will be useful, 00008 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00009 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00010 * GNU General Public License for more details. 00011 * 00012 * You should have received a copy of the GNU General Public License 00013 * along with this program; if not, write to the Free Software 00014 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00015 * 00016 * (c)Copyright 2006 Hewlett-Packard Development Company, LP. 00017 * 00018 */ 00019 00020 #include "C_CommandAction.hpp" 00021 #include "C_ScenarioControl.hpp" 00022 00023 C_CommandAction::C_CommandAction(T_CmdAction P_ActionData, 00024 T_pControllers P_controllers) { 00025 00026 m_type = P_ActionData.m_type ; 00027 m_args = P_ActionData.m_args ; 00028 m_id = P_ActionData.m_id ; 00029 m_mem_id = P_ActionData.m_mem_id ; 00030 m_instance_id = P_ActionData.m_instance_id ; 00031 m_sub_id = P_ActionData.m_sub_id ; 00032 m_begin = P_ActionData.m_begin ; 00033 m_size = P_ActionData.m_size ; 00034 m_pattern = P_ActionData.m_pattern ; 00035 m_pattern_size = P_ActionData.m_pattern_size ; 00036 m_position = P_ActionData.m_position ; 00037 m_string_expr = P_ActionData.m_string_expr ; 00038 m_check_behaviour = P_ActionData.m_check_behaviour ; 00039 m_field_data_num = P_ActionData.m_field_data_num ; 00040 m_regexp_data = P_ActionData.m_regexp_data ; 00041 m_external_method = P_ActionData.m_external_method ; 00042 00043 00044 m_controllers = *P_controllers ; 00045 00046 } 00047 00048 void C_CommandAction::update_log_controller(C_DataLogControl *P_log) { 00049 m_controllers.m_log = P_log ; 00050 } 00051 00052 00053 C_CommandAction::~C_CommandAction() { 00054 DELETE_VAR(m_regexp_data); 00055 } 00056 00057 00058 00059 00060 00061 00062 00063 00064 00065