Source

lrc / src / ResourceData.hxx

Diff from to

File src/ResourceData.hxx

 //      ResourceData.hxx
 //
-//      Copyright 2011 Andreas Tscharner <andy@vis.ethz.ch>
+//      Copyright 2011, 2012 Andreas Tscharner <andy@vis.ethz.ch>
 //
 //      This program is free software; you can redistribute it and/or modify
 //      it under the terms of the GNU Lesser General Public License as
  * information
  *
  * \author Andreas Tscharner
- * \date 2011-09-26
+ * \date 2012-01-07
  */
 
 
 		lrc::CompressionType m_compression; //!< Type of compression for this resource
 		inFilePosition m_inFilePosition;    //!< Position of resource in RC file
 
+		char *m_errorMsg;                   //!< Error message (if any)
+		/*! \brief Set new error message
+		 *
+		 * This method clears an old error message (if any) and sets the new
+		 * given one
+		 *
+		 * \param[in] p_newErrMsg New error message
+		 */
+		void set_error_msg(char *);
+
 	public:
 		/*! \brief Constructor
 		 *
 		 * \remarks The caller is responsible to free the returned class
 		 */
 		int get_data_from_memory(unsigned char *, resEntry, const unsigned char *p_password = nullptr);
+
+		/*! \brief Return error message
+		 *
+		 * This method returns the internal error message (if there is any)
+		 * and clears it
+		 *
+		 * \return Internal error message
+		 *
+		 * \remarks The caller is responsible to free the used memory for
+		 *          the message
+		 */
+		char *get_error_msg(void);
 };