Skip to content

Commit 80dad66

Browse files
committed
Recognize RETS/1.8.0
git-svn-id: https://code.crt.realtors.org/svn/librets/librets/trunk@1539 fe7ac059-47f5-0310-8599-d0339b4e125c
1 parent ba9634d commit 80dad66

File tree

6 files changed

+22
-4
lines changed

6 files changed

+22
-4
lines changed

NEWS

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Version 1.5.3 - xx xxx 2011
1+
Version 1.5.3 - xx xxx 2012
22

33
* Fix detection of gmcs by configure.
44
* Fix examples to use lazy initialization of the Columns to better
@@ -7,7 +7,9 @@ Version 1.5.3 - xx xxx 2011
77
* Make sure that SearchResultSet::GetColumn doesn't attempt to use
88
an empty string.
99
* Apply patches provided by Matthew Schultz.
10-
* Default to BOOST_FILESYSTEM_3 and boost 1.44 or later. Ticke #166.
10+
* Default to BOOST_FILESYSTEM_3 and boost 1.44 or later. Ticket #166.
11+
* Recognize RETS/1.8.0.
12+
* Pass exceptions through to Java.
1113

1214
Version 1.5.2 - 11 Feb 2011
1315

librets-build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ CPPFLAGS="-L/opt/local/lib -I/opt/local/include" \
1212
--with-expat-prefix=/opt/local \
1313
--with-boost-prefix=/opt/local \
1414
--with-java-prefix=`javaconfig Headers` \
15+
--with-snk-file=no \
1516
--prefix=/tmp/librets
1617

project/librets/include/librets/RetsSession.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,7 @@ class RetsSession : public MetadataLoader
507507
static const char * RETS_1_7_STRING;
508508
static const char * RETS_1_7_2_STRING;
509509
static const char * RETS_1_8_STRING;
510+
static const char * RETS_1_8_0_STRING;
510511

511512
void RetrieveAction();
512513

project/librets/include/librets/RetsVersion.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ enum RetsVersion
4949
/**
5050
* This is a RETS 1.8 server.
5151
*/
52-
RETS_1_8
52+
RETS_1_8,
53+
/**
54+
* This is a RETS 1.8.0 server.
55+
*/
56+
RETS_1_8_0
5357
};
5458

5559
}

project/librets/src/RetsSession.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ const char * CLASS::RETS_1_5_STRING = "RETS/1.5";
5252
const char * CLASS::RETS_1_7_STRING = "RETS/1.7";
5353
const char * CLASS::RETS_1_7_2_STRING = "RETS/1.7.2";
5454
const char * CLASS::RETS_1_8_STRING = "RETS/1.8";
55+
const char * CLASS::RETS_1_8_0_STRING = "RETS/1.8.0";
5556

5657
const int CLASS::MODE_CACHE = 0x01;
5758
const int CLASS::MODE_NO_STREAM = 0x02;
@@ -700,6 +701,10 @@ string CLASS::RetsVersionToString(RetsVersion retsVersion)
700701
{
701702
return RETS_1_8_STRING;
702703
}
704+
else if (retsVersion == RETS_1_8_0)
705+
{
706+
return RETS_1_8_0_STRING;
707+
}
703708
else
704709
{
705710
throw RetsException(str_stream() << "Invalid RetsVersion: "
@@ -729,6 +734,10 @@ RetsVersion CLASS::RetsVersionFromString(string versionString)
729734
{
730735
return RETS_1_8;
731736
}
737+
else if (versionString == RETS_1_8_0_STRING)
738+
{
739+
return RETS_1_8_0;
740+
}
732741
else if (versionString.empty())
733742
{
734743
return RETS_1_0;

project/swig/librets.i

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1332,7 +1332,8 @@ enum RetsVersion
13321332
RETS_1_5,
13331333
RETS_1_7,
13341334
RETS_1_7_2,
1335-
RETS_1_8
1335+
RETS_1_8,
1336+
RETS_1_8_0
13361337
};
13371338

13381339
enum EncodingType

0 commit comments

Comments
 (0)