GPSTK 数据配置文件格式
2013-09-07 22:33
351 查看
好久没更新了~看了点就顺手写了吧
跳过其它的直接进入ConfDataReader 这个文件
gpstk 支持自己编写读数据的配置文件而不用自己去接触底层代码,作者的初衷啊~下面就说下配置文件的格式
* - Anything after a '#' or a ';' is a comment
'#' 或者 ';' 号后面的是注释,养成良好习惯吧! '#' 放在开头表明是注释语句, ';' 放在句中表示后面是注释语句
* - Blank lines are ignored.
空白行忽略
* - No line may have more than 255 characters.
单行不得超过255个字符
* - Variable and section names are ALWAYS converted to uppercase.
变量和节的名称 通常会被转换为大写, 请不要以大小写区分
* - Variable and section names MUST start with a letter, and must only
* contain a mix of letters, numbers, dashes (-) and underscores (_).
变量和节的开头必须是字母并且只能有字母和数字,短横线或者下划线组成
* - Section names must be enclosed in brackets ([]).
节的名称必须用 [] 括起来
* - The Variable/Value pairs are separated by either '=' or ':'.
变量和对应的值用 =' or ':' 分开,其书写格式见下面的示例。注意可以对变量和值进行注释,等下具体说~
* - You may add comments to variables and values. Use a comma to
* separate such comments.
这个等下结合上面一起说吧
* - If you use the same variable name within a given section, only the
* last value will be used. Remember that names are ALWAYS converted to
* uppercase.
出现同名变量名取最后一个,包括大小写区分的变量
示例:
# Declare a section // 注释语句
[ONSA] // 节
name, 4-char station name = ONSA // 4-char station name 是对变量 name 的 注释 ONSA是其值, ONSA的注释忽略,4-char station name 这部分也可以忽略 如果想要在对 name 进行注释 可以在句尾
加一个 ";" 后面写注释
staX, X station coordinate = 3370658.5419, meters // 标准格式 变量名,注释 = 值, 注释
staY, Y station coordinate = 711877.1496, meters
staZ, Z station coordinate = 5349786.9542, meters
跳过其它的直接进入ConfDataReader 这个文件
gpstk 支持自己编写读数据的配置文件而不用自己去接触底层代码,作者的初衷啊~下面就说下配置文件的格式
* - Anything after a '#' or a ';' is a comment
'#' 或者 ';' 号后面的是注释,养成良好习惯吧! '#' 放在开头表明是注释语句, ';' 放在句中表示后面是注释语句
* - Blank lines are ignored.
空白行忽略
* - No line may have more than 255 characters.
单行不得超过255个字符
* - Variable and section names are ALWAYS converted to uppercase.
变量和节的名称 通常会被转换为大写, 请不要以大小写区分
* - Variable and section names MUST start with a letter, and must only
* contain a mix of letters, numbers, dashes (-) and underscores (_).
变量和节的开头必须是字母并且只能有字母和数字,短横线或者下划线组成
* - Section names must be enclosed in brackets ([]).
节的名称必须用 [] 括起来
* - The Variable/Value pairs are separated by either '=' or ':'.
变量和对应的值用 =' or ':' 分开,其书写格式见下面的示例。注意可以对变量和值进行注释,等下具体说~
* - You may add comments to variables and values. Use a comma to
* separate such comments.
这个等下结合上面一起说吧
* - If you use the same variable name within a given section, only the
* last value will be used. Remember that names are ALWAYS converted to
* uppercase.
出现同名变量名取最后一个,包括大小写区分的变量
示例:
# Declare a section // 注释语句
[ONSA] // 节
name, 4-char station name = ONSA // 4-char station name 是对变量 name 的 注释 ONSA是其值, ONSA的注释忽略,4-char station name 这部分也可以忽略 如果想要在对 name 进行注释 可以在句尾
加一个 ";" 后面写注释
staX, X station coordinate = 3370658.5419, meters // 标准格式 变量名,注释 = 值, 注释
staY, Y station coordinate = 711877.1496, meters
staZ, Z station coordinate = 5349786.9542, meters
相关文章推荐
- GPSTK 数据配置文件格式
- 配置iis支持.json格式的文件,如果是其他设备可以直接获取json里的数据
- mybatis配置文件发生异常:中元素内容必须由格式正确的字符数据或标记组成
- ibatis 配置文件及对应数据的格式…
- 文章20:NGINX配置文件格式及处理流程
- ABAP---如何将内表数据转成HTML格式文件
- wave文件(*.wav)格式、PCM数据格式
- Thrift 文件的格式及可用的数据类型
- 使用XML作为项目的配置文件使用,并解析之,获得数据作为链接数据库的参数
- 定义的数据文件格式说明
- Properties工具类获取配置文件数据
- PHP读取目录下所有文件,并通过ajax返回json格式的数据
- C4819:该文件包含不能在当前代码页中表示的字符。请将该文件保存为Unicode格式以防数据丢失
- Python实现将MySQL数据库表中的数据导出生成csv格式文件的方法
- 人物技能栏配置文件的数据分析(密传)
- 配置文件的格式选型
- 安卓中常用的数据存储方式之配置文件存取
- Hibernate配置文件中数据类型date与timestamp区别
- mybatis-generator通过数据库表反向生成配置文件和类
- .NET 2.0获取配置文件AppSettings和ConnectionStrings节数据的方法