Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

GoSetupUtil.cpp File Reference


Detailed Description

See GoSetupUtil.h.

Definition in file GoSetupUtil.cpp.

#include <cstdio>
#include "SgSystem.h"
#include "GoBoard.h"
#include "GoSetup.h"
#include "GoSetupUtil.h"

Go to the source code of this file.

Functions

bool IsBlackChar (char c)
bool IsWhiteChar (char c)
bool IsEmptyChar (char c)
bool IsIgnoreChar (char c)
bool ReadLine (std::streambuf &in, GoSetup &setup, int row, int &currLength)
GoSetup GoSetupUtil::CreateSetupFromStream (std::streambuf &in, int &boardSize)
 Create a setup instance from text stream.
GoSetup GoSetupUtil::CreateSetupFromString (std::string &in, int &boardSize)
GoSetup GoSetupUtil::CurrentPosSetup (const GoBoard &bd)
 Get a setup instance with the current position on board.


Function Documentation

bool @19::IsBlackChar ( char  c  )  [static]

Definition at line 18 of file GoSetupUtil.cpp.

Referenced by ReadLine().

bool @19::IsEmptyChar ( char  c  )  [static]

Definition at line 28 of file GoSetupUtil.cpp.

Referenced by ReadLine().

bool @19::IsIgnoreChar ( char  c  )  [static]

Definition at line 33 of file GoSetupUtil.cpp.

Referenced by ReadLine().

bool @19::IsWhiteChar ( char  c  )  [static]

Definition at line 23 of file GoSetupUtil.cpp.

Referenced by ReadLine().

bool @19::ReadLine ( std::streambuf &  in,
GoSetup setup,
int  row,
int &  currLength 
) [static]

Definition at line 38 of file GoSetupUtil.cpp.

References IsBlackChar(), IsEmptyChar(), IsIgnoreChar(), IsWhiteChar(), GoSetup::m_stones, Pt(), SG_BLACK, SG_MAX_SIZE, and SG_WHITE.

Referenced by GoSetupUtil::CreateSetupFromStream().


17 Jun 2010 Doxygen 1.4.7