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
Qt Code:
  1. /** \file msel_@seq_name@.h
  2.  *
  3.  * DO NOT EDIT - THIS FILE IS AUTOMATICALLY GENERATED BY MSEQ CODE GENERATOR !
  4.  *
  5.  * %PCMS_HEADER_SUBSTITUTION_START:%
  6.  * <table border="0" cellspacing="0" cellpadding="0">
  7.  * <tr> <td> Source: </td> <td> %PM: msel_@seq_name@.h %
  8.  * </td></tr>
  9.  * <tr> <td> Revision: </td> <td> %PR: 1.00 % </td></tr>
  10.  * <tr> <td> Status: </td> <td> %PS: UNDER_REVIEW % </td></tr>
  11.  * <tr> <td> Author: </td> <td> Hans-Joerg Boehme </td></tr>
  12.  * <tr> <td> Date: </td> <td> %PUDT: 03-AUG-2017 11:22:48 % </td></tr>
  13.  * </table>
  14.  * %PCMS_HEADER_SUBSTITUTION_END:%
  15.  * \n
  16.  * <table border="0" cellspacing="0" cellpadding="0">
  17.  * <tr> <td> COMPONENT: </td> <td> MSEQ: Measurement Sequences </td></tr>
  18.  * <tr> <td> SCOPE: </td> <td> Public </td></tr>
  19.  * <tr> <td> TARGET: </td> <td> Freescale MPC, Renesas RH850 </td></tr>
  20.  * </table>
  21.  */
  22.  
  23. #ifndef I_MSEL_@SEQ_NAME@_H
  24. #define I_MSEL_@SEQ_NAME@_H
  25.  
  26. /*********************************************************************************************************************/
  27. /* Include common and project definition header */
  28. /*********************************************************************************************************************/
  29. #include "dstdint.h" /* Standard definitions */
  30. #include "dassert.h" /* Standard definitions */
  31. #include "dstdbool.h" /* Standard definitions */
  32. #include "dstring.h" /* Standard definitions */
  33.  
  34. #include "tmp_pdf.h" /* Project definitions */
  35.  
  36. /*********************************************************************************************************************/
  37. /* Include headers of the component library */
  38. /*********************************************************************************************************************/
  39. #include "msel.h" /* MSEQ sequence library interface template */
  40.  
  41. /*********************************************************************************************************************/
  42. /* Include other headers */
  43. /*********************************************************************************************************************/
  44.  
  45. #ifdef __cplusplus
  46. extern "C" {
  47. #endif
  48.  
  49. /*********************************************************************************************************************/
  50. /* Definition of exported symbolic constants */
  51. /*********************************************************************************************************************/
  52.  
  53. /*********************************************************************************************************************/
  54. /* * code generator defined constants */
  55. /*********************************************************************************************************************/
  56. /*********************************************************************************************************************/
  57. /* * sequence type name definition */
  58. /*********************************************************************************************************************/
  59. #define MSEL_@SEQ_NAME@
  60.  
  61. /*********************************************************************************************************************/
  62. /* Definition of exported function like macros */
  63. /*********************************************************************************************************************/
  64.  
  65. /*********************************************************************************************************************/
  66. /* Definition of exported types (typedef, enum, struct, union) */
  67. /*********************************************************************************************************************/
  68.  
  69. /*********************************************************************************************************************/
  70. /* Declaration of exported variables */
  71. /*********************************************************************************************************************/
  72.  
  73. /*********************************************************************************************************************/
  74. /* Declaration of exported constant data */
  75. /*********************************************************************************************************************/
  76. extern const struct MSEL_meas_seq_S MSEL_meas_seq_@seq_name@;
  77.  
  78. /*********************************************************************************************************************/
  79. /* Declaration of exported function prototypes */
  80. /*********************************************************************************************************************/
  81.  
  82. #ifdef __cplusplus
  83. }
  84. #endif
  85.  
  86. #endif /* I_MSEL_ @SEQ_NAME@ _H */
To copy to clipboard, switch view to plain text mode