$Date: 2010/03/04 11:49:52 $
*/
-#include <time.h>
+#include <ctime>
#include <string>
-using namespace std;
+#include "os_int.h"
+
//-----------------------------------------------------------------------------
struct STG_MSG_HDR
{
//-----------------------------------------------------------------------------
struct STG_MSG
{
-STG_MSG()
- : header(),
- text()
-{};
+STG_MSG() {};
+
+time_t GetNextSendTime() const
+{
+return header.lastSendTime + header.repeat * 60;
+};
STG_MSG_HDR header;
-string text;
+std::string text;
};
//-----------------------------------------------------------------------------
#endif
-