version 0.1.0
[fms.git] / include / board.h
diff --git a/include/board.h b/include/board.h
new file mode 100644 (file)
index 0000000..2230f00
--- /dev/null
@@ -0,0 +1,38 @@
+#ifndef _board_\r
+#define _board_\r
+\r
+#include "datetime.h"\r
+#include "ilogger.h"\r
+#include "idatabase.h"\r
+\r
+#include <string>\r
+\r
+class Board:public ILogger,public IDatabase\r
+{\r
+public:\r
+       Board();\r
+       Board(const long boardid);\r
+       Board(const std::string &boardname);\r
+\r
+       const bool Load(const long boardid);\r
+       const bool Load(const std::string &boardname);\r
+\r
+       const long GetBoardID() const { return m_boardid; }\r
+       std::string GetBoardName() const { return m_boardname; }\r
+       std::string GetBoardDescription() const { return m_boarddescription; }\r
+       DateTime GetDateCreated() const { return m_datecreated; }\r
+       const long GetLowMessageID() const { return m_lowmessageid; }\r
+       const long GetHighMessageID() const { return m_highmessageid; }\r
+       const long GetMessageCount() const { return m_messagecount; }\r
+\r
+private:\r
+       long m_boardid;\r
+       std::string m_boardname;\r
+       std::string m_boarddescription;\r
+       DateTime m_datecreated;\r
+       long m_lowmessageid;            // lowest id of all message currently in this board\r
+       long m_highmessageid;           // highest id of all message currently in this board\r
+       long m_messagecount;            // number of messages in this board\r
+};\r
+\r
+#endif _board_\r