00001 #ifndef SQLSERVEROVTEXTINROWOPTION_H
00002 #define SQLSERVEROVTEXTINROWOPTION_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include <Rdbms/Override/SQLServerSpatial/SqlServerOv.h>
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 enum SqlServerOvTextInRowOption
00035 {
00036 SqlServerOvTextInRowOption_InRow,
00037 SqlServerOvTextInRowOption_NotInRow,
00038 SqlServerOvTextInRowOption_Default,
00039 };
00040
00041
00042
00043 namespace FdoSqlServerOverrides
00044 {
00045 static const FdoString* TextInRowOption_InRow = L"InRow";
00046 static const FdoString* TextInRowOption_NotInRow = L"NotInRow";
00047 static const FdoString* TextInRowOption_Default = L"Default";
00048 }
00049
00050 static SqlServerOvTextInRowOption TextInRow_StringToEnum(FdoString* textInRowString, FdoXmlSaxContext* pContext = NULL)
00051 {
00052 SqlServerOvTextInRowOption ret;
00053
00054 if (0==wcscmp(textInRowString, FdoSqlServerOverrides::TextInRowOption_InRow))
00055 ret = SqlServerOvTextInRowOption_InRow;
00056 else if (0==wcscmp(textInRowString, FdoSqlServerOverrides::TextInRowOption_NotInRow))
00057 ret = SqlServerOvTextInRowOption_NotInRow;
00058 else if (0==wcscmp(textInRowString, FdoSqlServerOverrides::TextInRowOption_Default))
00059 ret = SqlServerOvTextInRowOption_Default;
00060 else
00061 {
00062 ret = SqlServerOvTextInRowOption_Default;
00063 if (pContext != NULL)
00064 {
00065 FdoPtr<FdoException> e = FdoException::Create(L"TODO");
00066 pContext->AddError(e);
00067 }
00068 }
00069
00070 return ret;
00071 }
00072
00073 static FdoString* TextInRow_EnumToString(SqlServerOvTextInRowOption textInRowEnum)
00074 {
00075 if (textInRowEnum == SqlServerOvTextInRowOption_InRow)
00076 return FdoSqlServerOverrides::TextInRowOption_InRow;
00077 else if (textInRowEnum == SqlServerOvTextInRowOption_NotInRow)
00078 return FdoSqlServerOverrides::TextInRowOption_NotInRow;
00079 else if (textInRowEnum == SqlServerOvTextInRowOption_Default)
00080 return FdoSqlServerOverrides::TextInRowOption_Default;
00081 else
00082 throw FdoException::Create(L"TODO");
00083 }
00084
00085
00086 #endif // SQLSERVEROVTEXTINROWOPTION_H
00087
00088