Releases: ejetaxeblevich/XMLParser
Releases · ejetaxeblevich/XMLParser
1.1.1 [260201a]
- Добавлена поддержка
текстового полядляQuick-функций.
- Added
text fieldsupport forQuick-functions.
1.1 [260131a]
- Импортирован функционал из модификации ExplorerMod:
Class XMLParser
{
[M] bool IsFileExists( const char* path_to_file ) /* Проверяет, существует ли файл по этому пути */
[M] bool IsFileOpen( file descryptor ) /* Проверяет, открыт ли файл в памяти по этому дескриптору */
[M] string QuickGet( const char* path_to_file, const char* AttrName ) /* Возвращает значение атрибута из файла. Работает быстро, возвращает первое совпадение! Не использует кэш и переменные парсера, игнорирует пробелы и табуляцию */
[M] bool QuickSet( const char* path_to_file, const char* AttrName, const CStr& AttrValue ) /* Назначает значение атрибута в файле. Работает быстро, редактирует первое совпадение! Не использует кэш и переменные парсера, игнорирует пробелы и табуляцию */
[M] string QuickParseLine( const char* path_to_file, const char* LinePattern ) /* Возвращает захваченный паттерн строки из файла. Ищет построчно до первого совпадения, работает с регулярными выражениями */
[M] void ConvertPropertiesIn( const char* InputPATH, const char* OutputPATH ) /* Конвертирует значения объектов из файла (dynamicscene, world) в удобные варианты копирования для скриптов в файл OutputPATH, иначе в корень как func_ConvertPropertiesIn.xml. Примеры: rot="0.0004 0.9786 -0.2058 0.0021" --> rot="Quaternion(0.0004, 0.9786, -0.2058, 0.0021)"; Pos="326.145 436.152 2804.116" --> Pos="CVector(326.145, 436.152, 2804.116)" */
[M] AIParam ReadBinary( const char* path_to_file ) /* Читает бинарные файлы. Возвращает размер файла в байтах, килобайтах и мегабайтах. [.AsHex] - возвращает Hex-содержимое файла, [.AsASCII] - возвращает ASCII-содержимое файла */
}- Частично изменены
PARSER.KEYS; - Добавлены локальные функции
is_file_existsиIsKeyForbidden; - Перемещены
PARSER.CLASSESиз Cache в константы; - Другие мелкие правки
- Imported functionality from the ExplorerMod modification:
Class XMLParser
{
[M] bool IsFileExists( const char* path_to_file ) /* Checks if a file exists in this path */
[M] bool IsFileOpen( file descryptor ) /* Checks whether a file is open in memory using this descriptor */
[M] string QuickGet( const char* path_to_file, const char* AttrName ) /* Returns the attribute value from a file. It works fast, returns the first match! It does not use the cache and parser variables, ignores spaces and tabs */
[M] bool QuickSet( const char* path_to_file, const char* AttrName, const CStr& AttrValue ) /* Assigns an attribute value in the file. Works fast, edits the first match! It does not use the cache and parser variables, ignores spaces and tabs */
[M] string QuickParseLine( const char* path_to_file, const char* LinePattern ) /* Returns the captured string pattern from the file. Searches line by line up to the first match, works with regular expressions */
[M] void ConvertPropertiesIn( const char* InputPATH, const char* OutputPATH ) /* Converts object values from a file (dynamicscene, world) into convenient copy options for scripts to an OutputPath file, otherwise to the root as func_ConvertPropertiesIn.xml. Examples: rot="0.0004 0.9786 -0.2058 0.0021" --> rot="Quaternion(0.0004, 0.9786, -0.2058, 0.0021)"; Pos="326.145 436.152 2804.116" --> Pos="CVector(326.145, 436.152, 2804.116)" */
[M] AIParam ReadBinary( const char* path_to_file ) /* Reads binary files. Returns the file size in bytes, kilobytes, and megabytes. [.AsHex] - returns the Hex-content of the file, [.AsASCII] - returns the ASCII-content of the file */
}- Partially changed
PARSER.KEYS; - Added a local functions
is_file_existsandIsKeyForbidden; - Moved
PARSER.CLASSESfrom Cache to constants; - Other minor edits
1.0 [251228b]
Это первая публичная версия XMLParser. Версия используется модификацией ExplorerMod на Ex Machina/Hard Truck Apocalypse. Автор допускает возможное возникновение ошибок в работе.
This is the first public version of XMLParser. The version is used in the ExplorerMod modification for Ex Machina/Hard Truck Apocalypse. The author admits the possible occurrence of errors in the work.