Files
l7/L7/LInformation.h
2018-04-25 20:43:41 +02:00

51 lines
880 B
C++

/*
* File: LInformation.h
* Author: SET - nmset@netcourrier.com
* License : LGPL version 2.1
* Copyright SET, M. D. - © 2014
*
* Created on 24 mai 2014, 21:23
*/
#ifndef LINFORMATION_H
#define LINFORMATION_H
#include <wx/wx.h>
/**
* Holds messages from LConnection and LResultSet objects.
* @param newCode
* @param newMsg
*/
class LInformation
{
public:
LInformation(const wxString& newCode,
const wxString& newMsg);
virtual ~LInformation();
wxString GetCode() const
{
return m_code;
}
wxString GetMessage() const
{
return m_msg;
}
/**
*
* @return Both the code and the message concatenated.
*/
wxString GetFullInformation() const
{
return m_code + _T(" : ") + m_msg;
};
private:
wxString m_code;
wxString m_msg;
};
#endif /* LINFORMATION_H */