Index: trunk/rtcm3torinex/lib/rtcm3torinexsupport.cpp
===================================================================
--- trunk/rtcm3torinex/lib/rtcm3torinexsupport.cpp	(revision 4431)
+++ trunk/rtcm3torinex/lib/rtcm3torinexsupport.cpp	(revision 4432)
@@ -25,5 +25,8 @@
 */
 
+#include <string>
+extern "C" {
 #include "rtcm3torinex.h"
+}
 
 int rrinex3codetoentry(const char *code)
@@ -75,2 +78,16 @@
   return res;
 }
+
+std::string entry2rinexcode(const char* codetype[GNSS_MAXSATS][GNSSENTRY_NUMBER],
+                            int iSat, int iEntry) {
+  char str[3];
+  switch(iEntry&3) {
+   case GNSSENTRY_CODE:    str[0] = 'C'; break;
+   case GNSSENTRY_PHASE:   str[0] = 'L'; break;
+   case GNSSENTRY_DOPPLER: str[0] = 'D'; break;
+   case GNSSENTRY_SNR:     str[0] = 'S'; break;
+  }
+  str[1] = codetype[iSat][iEntry][0];
+  str[2] = codetype[iSat][iEntry][1];
+  return std::string(str);
+}
