Changeset 4422
- Timestamp:
- Jun 25, 2014 12:58:19 AM (9 years ago)
- Location:
- trunk/packages/vizservers
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/geovis/RendererCmd.cpp
r4383 r4422 1852 1852 } 1853 1853 1854 st ring = getUserMessages();1855 nBytes = strlen(string);1854 std::string msg = getUserMessages(); 1855 nBytes = msg.length(); 1856 1856 if (nBytes > 0) { 1857 string = msg.c_str(); 1857 1858 TRACE("userError=(%s)", string); 1858 1859 1859 1860 std::ostringstream oss; 1860 1861 oss << "nv>viserror -type error -token " << g_stats.nCommands << " -bytes " << nBytes << "\n" << string; 1861 nBytes = oss.str().length(); 1862 1863 if (queueResponse(oss.str().c_str(), nBytes, Response::VOLATILE, Response::ERROR) < 0) { 1862 std::string ostr = oss.str(); 1863 nBytes = ostr.length(); 1864 1865 if (queueResponse(ostr.c_str(), nBytes, Response::VOLATILE, Response::ERROR) < 0) { 1864 1866 return -1; 1865 1867 } -
trunk/packages/vizservers/geovis/Trace.cpp
r3998 r4422 88 88 } 89 89 90 const char * 90 std::string 91 91 GeoVis::getUserMessages() 92 92 { 93 return g_UserErrorString.str() .c_str();93 return g_UserErrorString.str(); 94 94 } 95 95 -
trunk/packages/vizservers/geovis/Trace.h
r3998 r4422 9 9 #define GEOVIS_TRACE_H 10 10 11 #include <string> 12 11 13 #include <syslog.h> 12 14 … … 15 17 extern void logUserMessage(const char* format, ...); 16 18 17 extern const char *getUserMessages();19 extern std::string getUserMessages(); 18 20 19 21 extern void clearUserMessages(); -
trunk/packages/vizservers/nanovis/Command.cpp
r4368 r4422 2315 2315 } 2316 2316 2317 st ring = getUserMessages();2318 nBytes = strlen(string);2317 std::string msg = getUserMessages(); 2318 nBytes = msg.length(); 2319 2319 if (nBytes > 0) { 2320 string = msg.c_str(); 2320 2321 TRACE("userError=(%s)", string); 2321 2322 2322 2323 std::ostringstream oss; 2323 2324 oss << "nv>viserror -type error -token " << g_stats.nCommands << " -bytes " << nBytes << "\n" << string; 2324 nBytes = oss.str().length(); 2325 std::string ostr = oss.str(); 2326 nBytes = ostr.length(); 2325 2327 2326 2328 #ifdef USE_THREADS 2327 queueResponse(os s.str().c_str(), nBytes, Response::VOLATILE, Response::ERROR);2329 queueResponse(ostr.c_str(), nBytes, Response::VOLATILE, Response::ERROR); 2328 2330 #else 2329 if (write(fdOut, os s.str().c_str(), nBytes) < 0) {2331 if (write(fdOut, ostr.c_str(), nBytes) < 0) { 2330 2332 ERROR("write failed: %s", strerror(errno)); 2331 2333 return -1; -
trunk/packages/vizservers/nanovis/Trace.cpp
r3605 r4422 90 90 } 91 91 92 const char * 92 std::string 93 93 nv::getUserMessages() 94 94 { 95 return g_UserErrorString.str() .c_str();95 return g_UserErrorString.str(); 96 96 } 97 97 -
trunk/packages/vizservers/nanovis/Trace.h
r3613 r4422 8 8 #ifndef NV_TRACE_H 9 9 #define NV_TRACE_H 10 11 #include <string> 10 12 11 13 #include <GL/glew.h> … … 22 24 extern void logUserMessage(const char* format, ...); 23 25 24 extern const char *getUserMessages();26 extern std::string getUserMessages(); 25 27 26 28 extern void clearUserMessages(); -
trunk/packages/vizservers/vtkvis/RendererCmd.cpp
r4371 r4422 13122 13122 std::ostringstream oss; 13123 13123 oss << "nv>viserror -type internal_error -token " << g_stats.nCommands << " -bytes " << nBytes << "\n" << string; 13124 nBytes = oss.str().length(); 13124 std::string ostr = oss.str(); 13125 nBytes = ostr.length(); 13125 13126 13126 13127 #ifdef USE_THREADS 13127 queueResponse(clientData, os s.str().c_str(), nBytes, Response::VOLATILE, Response::ERROR);13128 queueResponse(clientData, ostr.c_str(), nBytes, Response::VOLATILE, Response::ERROR); 13128 13129 #else 13129 if (write(fdOut, os s.str().c_str(), nBytes) < 0) {13130 if (write(fdOut, ostr.c_str(), nBytes) < 0) { 13130 13131 ERROR("write failed: %s", strerror(errno)); 13131 13132 return -1; … … 13135 13136 } 13136 13137 13137 st ring = getUserMessages();13138 nBytes = strlen(string);13138 std::string msg = getUserMessages(); 13139 nBytes = msg.length(); 13139 13140 if (nBytes > 0) { 13141 string = msg.c_str(); 13140 13142 TRACE("userError=(%s)", string); 13141 13143 13142 13144 std::ostringstream oss; 13143 13145 oss << "nv>viserror -type error -token " << g_stats.nCommands << " -bytes " << nBytes << "\n" << string; 13144 nBytes = oss.str().length(); 13146 std::string ostr = oss.str(); 13147 nBytes = ostr.length(); 13145 13148 13146 13149 #ifdef USE_THREADS 13147 queueResponse(clientData, os s.str().c_str(), nBytes, Response::VOLATILE, Response::ERROR);13150 queueResponse(clientData, ostr.c_str(), nBytes, Response::VOLATILE, Response::ERROR); 13148 13151 #else 13149 if (write(fdOut, os s.str().c_str(), nBytes) < 0) {13152 if (write(fdOut, ostr.c_str(), nBytes) < 0) { 13150 13153 ERROR("write failed: %s", strerror(errno)); 13151 13154 return -1; -
trunk/packages/vizservers/vtkvis/Trace.cpp
r3615 r4422 88 88 } 89 89 90 const char * 90 std::string 91 91 VtkVis::getUserMessages() 92 92 { 93 return g_UserErrorString.str() .c_str();93 return g_UserErrorString.str(); 94 94 } 95 95 -
trunk/packages/vizservers/vtkvis/Trace.h
r3615 r4422 9 9 #define VTKVIS_TRACE_H 10 10 11 #include <string> 12 11 13 #include <syslog.h> 12 14 … … 15 17 extern void logUserMessage(const char* format, ...); 16 18 17 extern const char *getUserMessages();19 extern std::string getUserMessages(); 18 20 19 21 extern void clearUserMessages();
Note: See TracChangeset
for help on using the changeset viewer.