deepikha
25th August 2017, 13:37
i have a data in variable "V" (fms_fast is the data in variable 'v'). i have a header file and i have attached it below.
i have to replace the string @seq_name@ in the header file with the data in the variable (v)..
please help me with this
/** \file msel_@seq_name@.h
*
* DO NOT EDIT - THIS FILE IS AUTOMATICALLY GENERATED BY MSEQ CODE GENERATOR !
*
* %PCMS_HEADER_SUBSTITUTION_START:%
* <table border="0" cellspacing="0" cellpadding="0">
* <tr> <td> Source: </td> <td> %PM: msel_@seq_name@.h %
* </td></tr>
* <tr> <td> Revision: </td> <td> %PR: 1.00 % </td></tr>
* <tr> <td> Status: </td> <td> %PS: UNDER_REVIEW % </td></tr>
* <tr> <td> Author: </td> <td> Hans-Joerg Boehme </td></tr>
* <tr> <td> Date: </td> <td> %PUDT: 03-AUG-2017 11:22:48 % </td></tr>
* </table>
* %PCMS_HEADER_SUBSTITUTION_END:%
* \n
* <table border="0" cellspacing="0" cellpadding="0">
* <tr> <td> COMPONENT: </td> <td> MSEQ: Measurement Sequences </td></tr>
* <tr> <td> SCOPE: </td> <td> Public </td></tr>
* <tr> <td> TARGET: </td> <td> Freescale MPC, Renesas RH850 </td></tr>
* </table>
*/
#ifndef I_MSEL_@SEQ_NAME@_H
#define I_MSEL_@SEQ_NAME@_H
/************************************************** ************************************************** *****************/
/* Include common and project definition header */
/************************************************** ************************************************** *****************/
#include "dstdint.h" /* Standard definitions */
#include "dassert.h" /* Standard definitions */
#include "dstdbool.h" /* Standard definitions */
#include "dstring.h" /* Standard definitions */
#include "tmp_pdf.h" /* Project definitions */
/************************************************** ************************************************** *****************/
/* Include headers of the component library */
/************************************************** ************************************************** *****************/
#include "msel.h" /* MSEQ sequence library interface template */
/************************************************** ************************************************** *****************/
/* Include other headers */
/************************************************** ************************************************** *****************/
#ifdef __cplusplus
extern "C" {
#endif
/************************************************** ************************************************** *****************/
/* Definition of exported symbolic constants */
/************************************************** ************************************************** *****************/
/************************************************** ************************************************** *****************/
/* * code generator defined constants */
/************************************************** ************************************************** *****************/
/************************************************** ************************************************** *****************/
/* * sequence type name definition */
/************************************************** ************************************************** *****************/
#define MSEL_@SEQ_NAME@
/************************************************** ************************************************** *****************/
/* Definition of exported function like macros */
/************************************************** ************************************************** *****************/
/************************************************** ************************************************** *****************/
/* Definition of exported types (typedef, enum, struct, union) */
/************************************************** ************************************************** *****************/
/************************************************** ************************************************** *****************/
/* Declaration of exported variables */
/************************************************** ************************************************** *****************/
/************************************************** ************************************************** *****************/
/* Declaration of exported constant data */
/************************************************** ************************************************** *****************/
extern const struct MSEL_meas_seq_S MSEL_meas_seq_@seq_name@;
/************************************************** ************************************************** *****************/
/* Declaration of exported function prototypes */
/************************************************** ************************************************** *****************/
#ifdef __cplusplus
}
#endif
#endif /* I_MSEL_ @SEQ_NAME@ _H */
i have to replace the string @seq_name@ in the header file with the data in the variable (v)..
please help me with this
/** \file msel_@seq_name@.h
*
* DO NOT EDIT - THIS FILE IS AUTOMATICALLY GENERATED BY MSEQ CODE GENERATOR !
*
* %PCMS_HEADER_SUBSTITUTION_START:%
* <table border="0" cellspacing="0" cellpadding="0">
* <tr> <td> Source: </td> <td> %PM: msel_@seq_name@.h %
* </td></tr>
* <tr> <td> Revision: </td> <td> %PR: 1.00 % </td></tr>
* <tr> <td> Status: </td> <td> %PS: UNDER_REVIEW % </td></tr>
* <tr> <td> Author: </td> <td> Hans-Joerg Boehme </td></tr>
* <tr> <td> Date: </td> <td> %PUDT: 03-AUG-2017 11:22:48 % </td></tr>
* </table>
* %PCMS_HEADER_SUBSTITUTION_END:%
* \n
* <table border="0" cellspacing="0" cellpadding="0">
* <tr> <td> COMPONENT: </td> <td> MSEQ: Measurement Sequences </td></tr>
* <tr> <td> SCOPE: </td> <td> Public </td></tr>
* <tr> <td> TARGET: </td> <td> Freescale MPC, Renesas RH850 </td></tr>
* </table>
*/
#ifndef I_MSEL_@SEQ_NAME@_H
#define I_MSEL_@SEQ_NAME@_H
/************************************************** ************************************************** *****************/
/* Include common and project definition header */
/************************************************** ************************************************** *****************/
#include "dstdint.h" /* Standard definitions */
#include "dassert.h" /* Standard definitions */
#include "dstdbool.h" /* Standard definitions */
#include "dstring.h" /* Standard definitions */
#include "tmp_pdf.h" /* Project definitions */
/************************************************** ************************************************** *****************/
/* Include headers of the component library */
/************************************************** ************************************************** *****************/
#include "msel.h" /* MSEQ sequence library interface template */
/************************************************** ************************************************** *****************/
/* Include other headers */
/************************************************** ************************************************** *****************/
#ifdef __cplusplus
extern "C" {
#endif
/************************************************** ************************************************** *****************/
/* Definition of exported symbolic constants */
/************************************************** ************************************************** *****************/
/************************************************** ************************************************** *****************/
/* * code generator defined constants */
/************************************************** ************************************************** *****************/
/************************************************** ************************************************** *****************/
/* * sequence type name definition */
/************************************************** ************************************************** *****************/
#define MSEL_@SEQ_NAME@
/************************************************** ************************************************** *****************/
/* Definition of exported function like macros */
/************************************************** ************************************************** *****************/
/************************************************** ************************************************** *****************/
/* Definition of exported types (typedef, enum, struct, union) */
/************************************************** ************************************************** *****************/
/************************************************** ************************************************** *****************/
/* Declaration of exported variables */
/************************************************** ************************************************** *****************/
/************************************************** ************************************************** *****************/
/* Declaration of exported constant data */
/************************************************** ************************************************** *****************/
extern const struct MSEL_meas_seq_S MSEL_meas_seq_@seq_name@;
/************************************************** ************************************************** *****************/
/* Declaration of exported function prototypes */
/************************************************** ************************************************** *****************/
#ifdef __cplusplus
}
#endif
#endif /* I_MSEL_ @SEQ_NAME@ _H */