亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? worldfile.hh

?? 一個機器人平臺
?? HH
字號:
/* *  Stage : a multi-robot simulator. *  Copyright (C) 2001, 2002 Richard Vaughan, Andrew Howard and Brian Gerkey. * *  This program is free software; you can redistribute it and/or modify *  it under the terms of the GNU General Public License as published by *  the Free Software Foundation; either version 2 of the License, or *  (at your option) any later version. * *  This program is distributed in the hope that it will be useful, *  but WITHOUT ANY WARRANTY; without even the implied warranty of *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the *  GNU General Public License for more details. * *  You should have received a copy of the GNU General Public License *  along with this program; if not, write to the Free Software *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA * *//* * Desc: A class for reading in the world file. * Author: Andrew Howard * Date: 15 Nov 2001 * CVS info: $Id: worldfile.hh,v 1.1.4.1 2003/04/17 23:40:10 rtv Exp $ */#ifndef WORLDFILE_HH#define WORLDFILE_HH// Class for loading/saving world file.  This class hides the syntax// of the world file and provides an 'entity.property = value' style// interface.  Global settings go in entity 0; every other entity// refers to a specific entity.  Parent/child relationships are// encoded in the form of entity/subentity relationships.class CWorldFile{  // Standard constructors/destructors  public: CWorldFile();  public: ~CWorldFile();  // replacement for fopen() that checks STAGEPATH dirs for the named file  // (thanks to  Douglas S. Blank <dblank@brynmawr.edu>)protected: FILE* FileOpen(const char *filename, const char* method);  // Load world from file  public: bool Load(const char *filename);  // Save world back into file  // Set filename to NULL to save back into the original file  public: bool Save(const char *filename);  // Check for unused properties and print warnings  public: bool WarnUnused();  // Read a string  public: const char *ReadString(int entity, const char *name, const char *value);  // Write a string  public: void WriteString(int entity, const char *name, const char *value);  // Read an integer   public: int ReadInt(int entity, const char *name, int value);  // Write an integer  public: void WriteInt(int entity, const char *name, int value);  // Read a float   public: double ReadFloat(int entity, const char *name, double value);  // Write a float  public: void WriteFloat(int entity, const char *name, double value);  // Read a length (includes unit conversion)  public: double ReadLength(int entity, const char *name, double value);  // Write a length (includes units conversion)  public: void WriteLength(int entity, const char *name, double value);    // Read an angle (includes unit conversion)  public: double ReadAngle(int entity, const char *name, double value);  // Read a boolean  // REMOVE? public: bool ReadBool(int entity, const char *name, bool value);  // Read a color (includes text to RGB conversion)  public: uint32_t ReadColor(int entity, const char *name, uint32_t value);  // Read a file name.  Always returns an absolute path.  If the  // filename is entered as a relative path, we prepend the world  // files path to it.  public: const char *ReadFilename(int entity, const char *name, const char *value);    // Read a string from a tuple  public: const char *ReadTupleString(int entity, const char *name,                                      int index, const char *value);    // Write a string to a tuple  public: void WriteTupleString(int entity, const char *name,                                int index, const char *value);    // Read a float from a tuple  public: double ReadTupleFloat(int entity, const char *name,                                int index, double value);  // Write a float to a tuple  public: void WriteTupleFloat(int entity, const char *name,                               int index, double value);  // Read a length from a tuple (includes units conversion)  public: double ReadTupleLength(int entity, const char *name,                                 int index, double value);  // Write a to a tuple length (includes units conversion)  public: void WriteTupleLength(int entity, const char *name,                                int index, double value);  // Read an angle form a tuple (includes units conversion)  public: double ReadTupleAngle(int entity, const char *name,                                int index, double value);  // Write an angle to a tuple (includes units conversion)  public: void WriteTupleAngle(int entity, const char *name,                               int index, double value);  ////////////////////////////////////////////////////////////////////////////  // Private methods used to load stuff from the world file    // Load tokens from a file.  private: bool LoadTokens(FILE *file, int include);  // Read in a comment token  private: bool LoadTokenComment(FILE *file, int *line, int include);  // Read in a word token  private: bool LoadTokenWord(FILE *file, int *line, int include);  // Load an include token; this will load the include file.  private: bool LoadTokenInclude(FILE *file, int *line, int include);  // Read in a number token  private: bool LoadTokenNum(FILE *file, int *line, int include);  // Read in a string token  private: bool LoadTokenString(FILE *file, int *line, int include);  // Read in a whitespace token  private: bool LoadTokenSpace(FILE *file, int *line, int include);  // Save tokens to a file.  private: bool SaveTokens(FILE *file);  // Clear the token list  private: void ClearTokens();  // Add a token to the token list  private: bool AddToken(int type, const char *value, int include);  // Set a token in the token list  private: bool SetTokenValue(int index, const char *value);  // Get the value of a token  private: const char *GetTokenValue(int index);  // Dump the token list (for debugging).  private: void DumpTokens();  // Parse a line  private: bool ParseTokens();  // Parse an include statement  private: bool ParseTokenInclude(int *index, int *line);  // Parse a macro definition  private: bool ParseTokenDefine(int *index, int *line);  // Parse an word (could be a entity or an property) from the token list.  private: bool ParseTokenWord(int entity, int *index, int *line);  // Parse a entity from the token list.  private: bool ParseTokenEntity(int entity, int *index, int *line);  // Parse an property from the token list.  private: bool ParseTokenProperty(int entity, int *index, int *line);  // Parse a tuple.  private: bool ParseTokenTuple(int entity, int property, int *index, int *line);  // Clear the macro list  private: void ClearMacros();  // Add a macro  private: int AddMacro(const char *macroname, const char *entityname,                        int line, int starttoken, int endtoken);  // Lookup a macro by name  // Returns -1 if there is no macro with this name.  private: int LookupMacro(const char *macroname);  // Dump the macro list for debugging  private: void DumpMacros();  // Clear the entity list  private: void ClearEntities();  // Add a entity  private: int AddEntity(int parent, const char *type);    // Get the number of entities.  public: int GetEntityCount();  // Get a entity (returns the entity type value)  public: const char *GetEntityType(int entity);  // Lookup a entity number by type name  // Returns -1 if there is entity with this type  public: int LookupEntity(const char *type);    // Get a entity's parent entity.  // Returns -1 if there is no parent.  public: int GetEntityParent(int entity);  // Dump the entity list for debugging  private: void DumpEntities();  // Clear the property list  private: void ClearProperties();  // Add an property  private: int AddProperty(int entity, const char *name, int line);  // Add an property value.  private: void AddPropertyValue(int property, int index, int value_token);    // Get an property  private: int GetProperty(int entity, const char *name);  // Set the value of an property.  private: void SetPropertyValue(int property, int index, const char *value);  // Get the value of an property.  private: const char *GetPropertyValue(int property, int index);  // Dump the property list for debugging  private: void DumpProperties();  // Token types.  private: enum  {    TokenComment,    TokenWord, TokenNum, TokenString,    TokenOpenEntity, TokenCloseEntity,    TokenOpenTuple, TokenCloseTuple,    TokenSpace, TokenEOL  };  // Token structure.  private: struct CToken  {    // Non-zero if token is from an include file.    int include;        // Token type (enumerated value).    int type;    // Token value    char *value;  };  // A list of tokens loaded from the file.  // Modified values are written back into the token list.  private: int token_size, token_count;  private: CToken *tokens;  // Private macro class  private: struct CMacro  {    // Name of macro    const char *macroname;    // Name of entity    const char *entityname;    // Line the macro definition starts on.    int line;        // Range of tokens in the body of the macro definition.    int starttoken, endtoken;  };  // Macro list  private: int macro_size;  private: int macro_count;  private: CMacro *macros;    // Private entity class  private: struct CEntity  {    // Parent entity    int parent;    // Type of entity (i.e. position, laser, etc).    const char *type;  };  // Entity list  private: int entity_size;  private: int entity_count;  private: CEntity *entities;  // Private property class  private: struct CProperty  {    // Index of entity this property belongs to    int entity;    // Name of property    const char *name;        // A list of token indexes    int value_count;    int *values;    // Line this property came from    int line;    // Flag set if property has been used    bool used;  };    // Property list  private: int property_size;  private: int property_count;  private: CProperty *properties;  // Name of the file we loaded  private: char *filename;  // Conversion units  private: double unit_length;  private: double unit_angle;};#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91成人免费在线视频| 97久久人人超碰| 亚洲欧美综合另类在线卡通| 欧美日韩一区二区在线观看 | 一本久久a久久免费精品不卡| 青青草精品视频| 亚洲欧美另类综合偷拍| 久久久久久一级片| 欧美高清dvd| 色综合久久88色综合天天6| 国内久久婷婷综合| 日本欧美韩国一区三区| 一区二区三区在线免费视频| 国产色产综合产在线视频| 亚洲欧美另类小说| 精品久久久久99| 欧美色视频在线| 成人av资源在线| 国产精品夜夜嗨| 蜜桃精品视频在线| 丝袜亚洲另类丝袜在线| 亚洲黄色性网站| 最新日韩av在线| 国产欧美日本一区二区三区| 日韩欧美成人午夜| 91精品麻豆日日躁夜夜躁| 欧美中文一区二区三区| 色一情一伦一子一伦一区| 风间由美一区二区av101| 国产一区二区在线视频| 日韩高清不卡一区| 日韩二区三区在线观看| 日本中文一区二区三区| 午夜精品在线视频一区| 亚洲第一搞黄网站| 亚洲福利一区二区| 亚洲电影第三页| 亚洲国产日韩一级| 亚洲午夜久久久久久久久电影院| 亚洲精品乱码久久久久久黑人| 国产精品第四页| 日韩一区在线免费观看| 亚洲人成在线观看一区二区| 专区另类欧美日韩| 一区二区三区在线视频观看| 亚洲一区二区三区四区五区中文| 一区二区三区美女视频| 亚洲午夜影视影院在线观看| 视频一区国产视频| 美日韩一级片在线观看| 国内精品国产成人国产三级粉色| 国产一区二三区好的| 精品一区二区在线看| 国产一区二区主播在线| 成人午夜又粗又硬又大| 99久久精品国产一区| 色久优优欧美色久优优| 欧美日韩免费高清一区色橹橹| 欧美片网站yy| 欧美大片一区二区三区| 国产日韩欧美一区二区三区乱码| 国产精品免费免费| 一级中文字幕一区二区| 免费精品视频最新在线| 国产精品一区在线观看乱码| 99精品黄色片免费大全| 欧美日韩一区二区欧美激情| 日韩一卡二卡三卡四卡| 久久天天做天天爱综合色| 国产精品不卡在线| 丝袜国产日韩另类美女| 国产精品系列在线观看| 色综合久久中文字幕综合网| 欧美丰满少妇xxxxx高潮对白| 久久综合色天天久久综合图片| 国产精品国产精品国产专区不蜜 | 久久久久久久久久久99999| 久久综合狠狠综合| 欧美激情一区二区三区不卡| 一区二区三区电影在线播| 五月激情综合色| 国产精品一区二区在线看| 不卡的av电影| 日韩欧美一区二区不卡| 国产精品久久久久国产精品日日| 午夜精品福利一区二区蜜股av| 国产一区欧美日韩| 欧美午夜视频网站| 欧美激情中文字幕一区二区| 丝袜a∨在线一区二区三区不卡| 国产成人精品免费看| 欧美日韩美少妇| 国产精品久久久久久亚洲毛片 | 欧美色大人视频| 久久久久久久国产精品影院| 一区二区成人在线| 国产白丝精品91爽爽久久| 欧美精品免费视频| 国产精品一区二区不卡| 国产精品传媒入口麻豆| 日韩国产欧美一区二区三区| 国产suv精品一区二区6| 欧美日韩视频在线一区二区| 国产女同性恋一区二区| 日韩精品久久久久久| 一本一道久久a久久精品 | 国内精品国产成人| 欧美日韩精品一区二区天天拍小说 | 高清不卡在线观看av| 欧美一区二区在线播放| 亚洲乱码日产精品bd| 成人午夜精品在线| 精品国产乱码久久久久久浪潮| 亚洲永久精品大片| 972aa.com艺术欧美| 国产欧美一区二区精品性色超碰| 秋霞电影网一区二区| 欧美在线免费播放| 亚洲欧美日韩国产综合| 成人精品gif动图一区| 久久女同性恋中文字幕| 日韩中文字幕一区二区三区| 亚洲成人黄色小说| 99re这里都是精品| 国产精品国产馆在线真实露脸| 黄色小说综合网站| 日韩亚洲欧美综合| 五月天婷婷综合| 欧美日韩黄色一区二区| 一区二区三区蜜桃网| 在线欧美一区二区| 一区二区三区四区高清精品免费观看| av激情亚洲男人天堂| 日韩一区日韩二区| 日本电影亚洲天堂一区| 亚洲精品日产精品乱码不卡| 色菇凉天天综合网| 亚洲国产视频在线| 91麻豆精品91久久久久同性| 免费不卡在线观看| 日韩免费视频一区二区| 久久97超碰色| 久久久久一区二区三区四区| 粉嫩高潮美女一区二区三区| 国产精品久久久久婷婷二区次| hitomi一区二区三区精品| 最新中文字幕一区二区三区| 在线视频欧美区| 三级精品在线观看| 日韩欧美不卡在线观看视频| 国产精品一区在线观看乱码 | 欧美最新大片在线看| 亚洲一区视频在线观看视频| 欧美精品一二三四| 美女在线观看视频一区二区| 久久综合九色综合97_久久久 | 欧美麻豆精品久久久久久| 偷拍自拍另类欧美| 欧美va亚洲va香蕉在线| 国产酒店精品激情| 国产精品成人一区二区艾草| 色丁香久综合在线久综合在线观看| 亚洲人亚洲人成电影网站色| 欧美亚洲图片小说| 三级影片在线观看欧美日韩一区二区 | 欧美成人精品福利| 国产成人午夜精品5599| 亚洲女爱视频在线| 69av一区二区三区| 成人午夜视频免费看| 亚洲国产精品久久人人爱| 亚洲精品一区二区三区蜜桃下载| 成人美女在线视频| 亚洲成人免费视频| 久久久久88色偷偷免费| 在线影视一区二区三区| 国内精品国产三级国产a久久| 国产精品成人免费在线| 欧美一区午夜视频在线观看 | 91国在线观看| 捆绑紧缚一区二区三区视频| 国产精品第五页| 欧美sm美女调教| 91麻豆.com| 国内精品久久久久影院色| 一区二区视频在线| 久久人人爽爽爽人久久久| 色噜噜狠狠成人中文综合| 国产精品综合二区| 天堂蜜桃一区二区三区 | 亚洲国产精品一区二区www在线 | 欧美成人r级一区二区三区| 国产99久久久国产精品| 三级在线观看一区二区| 中文字幕亚洲一区二区av在线| 日韩一级二级三级| 色综合久久久久久久| 国产成人免费在线视频| 首页综合国产亚洲丝袜| 中文字幕亚洲电影|