Source

lrc / src / ResourceData.cxx

Author Commit Message Labels Comments Date
Andreas Tscharner
Bugfix: Check correct value of double pointer
Andreas Tscharner
disable encryption: Correct compiler handling if disabled encryption Created new exception that gets thrown if an encryption (other than None) is required, but encryption support is disabled. The exception gets caught in ResourceData which saves the error message and the Collector class checks for this message and shows it if available.
Andreas Tscharner
Fix RIF parser and ResourceData * Fix some bugs in RIF parser - Double free - Data access after having freed the object * Fix a problem in ResourceData: Clear the memory before writing to it * Add a lot of DEBUG_PRINTs
Andreas Tscharner
Implemented parse() method * Implemented parsing a .rif file * Omitted error handling at the moment
Andreas Tscharner
Prepare for the second input file type by renaming a few things * Renamed ERROR_PARSE_RC to ERROR_PARSE * Renamed rcFilePosition to inFilePosition
Andreas Tscharner
Support passwords as preparation for encryption * Parse encryption parameter and password * Pass along password for encryption and decryption * New utility function to allow unsigned chars as zero-treminated passwords
Andreas Tscharner
Change license: from GNU GPL 2+ to GNU LGPL 3+
Andreas Tscharner
Fix error text and position if an entry caused an error while collecting * Use two variables for string as it is not possible to use the same in snprintf * Set a sane column value in case of an error while reading, compressing and encrypting the resource data from file
Andreas Tscharner
Define tuple<int, int> as rcFilePosition and use it
Andreas Tscharner
Implement get_data_from_memory and a few general updates * Fix names of status codes * Fix check for found resource * Add forgotten memory clean up
Andreas Tscharner
Implement get_resource in ResourceManager
Andreas Tscharner
Allow any character for encryption key
Andreas Tscharner
Implement collect method - New methdo in ResourceData: prepare_resource_from_file - Use new method in Collector::collect - A lot of new codes in StatusCodes.hxx - Check return value in main from collect
Andreas Tscharner
Remove get_ident method from ResourceData as this method already exists The method get_ID already exists in the base class Resource
Andreas Tscharner
Added new struct and updated ResourceData class * New struct (including typedef for shorter name) for binary loading and saving a resource * Updated ResourceData class with getter methods for all members
Andreas Tscharner
Move EncryptionType and CompressionType into their corresponding files Therefore they are also moved into the lrc namespace and the lrc prefix is no longer necessary
Andreas Tscharner
Fix debug output with std::get<>
Andreas Tscharner
Save position of resource data entry in file while compiling This should allow for a sane and useful error message
Andreas Tscharner
Added DEBUG_PRINT macro for simple debugging
Andreas Tscharner
Implement parse method and improve error handling * Add internal error states and methods to handle them in a sane way in RCParser class for better error handling * New file containing status (e.g. status, warning and error) codes * Add setter methods to ResourceData class * Update Makefile.am
Andreas Tscharner
First compilable version (no functions yet) * Add ResourceData.* with implementation of the class of the same name * Add dummy lrc.cxx * Use standard/simple constructor for Resource class * Several changes to fix compiler errors * Fix typos * Comment stuff out that's not ready (documentation)