prg_profile_create_bt()
摘要
创建一个新的、未附加的 profile。
语法
prg_profile_create_bt (x_units_str, y_units_str, start_time, base_name_str, length, entries_ptr)
| 参数 | 类型 | 说明 |
|---|---|---|
x_units_str |
const char * |
x 轴的标签。 |
y_units_str |
const char * |
y 轴的标签。 |
start_time |
PrgT_Date |
profile 的起始时间。 |
base_name_str |
const char * |
profile 的名称。(如果为空,将分配默认名称。 |
length |
unsigned int |
profile 中数据条目的数量。 |
entries_ptr |
const PrgT_Profile_Data_Entry * |
指向 profile 第一个数据条目的指针。 |
返回类型
PrgT_Profile_Handle
新 profile 的句柄。
头文件
prg_profile_funcs.h
详情
此函数使用提供的信息创建一个新 profile。在 profile 能够作为对象属性值使用之前,必须使用 prg_profile_lib_profile_add() 将其附加到 profile 库。
注意: 要获得已弃用函数 prg_profile_create() 的功能,请在调用此函数时将 start_time 设为 PRGC_DATE_VALUE_UNDEFINED。