miniBoardChar50.h
Go to the documentation of this file.
00001 /* miniBoardChar50.h
00002  */
00003 #ifndef OSL_MINIBOARDCHAR50_H
00004 #define OSL_MINIBOARDCHAR50_H
00005 
00006 #include "osl/state/simpleState.h"
00007 #include <boost/cstdint.hpp>
00008 #include <string>
00009 namespace osl
00010 {
00011   namespace record
00012   {  
00013     class MiniBoardChar50;
00014     bool operator<(const MiniBoardChar50&, const MiniBoardChar50&);
00015     bool operator==(const MiniBoardChar50&, const MiniBoardChar50&);
00019     class MiniBoardChar50
00020     {
00021     public:
00022       MiniBoardChar50();
00023       explicit MiniBoardChar50(const SimpleState&);
00024       explicit MiniBoardChar50(const std::string &src);
00025       const std::string toString() const;
00026       const SimpleState toSimpleState(Player turn=BLACK) const;
00027     private:
00033       CArray<uint8_t,50> data;
00034       friend bool operator<(const MiniBoardChar50&, const MiniBoardChar50&);
00035       friend bool operator==(const MiniBoardChar50&, const MiniBoardChar50&);
00036     };
00037   }
00038 }
00039 
00040 
00041 #endif /* OSL_MINIBOARDCHAR50_H */
00042 // ;;; Local Variables:
00043 // ;;; mode:c++
00044 // ;;; c-basic-offset:2
00045 // ;;; End:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines