فهرست منبع

mexStream --> MexStream

Former-commit-id: dfe2e1b08808c655428f33441d49564f830db3ca
Alec Jacobson 11 سال پیش
والد
کامیت
c925e70718
3فایلهای تغییر یافته به همراه8 افزوده شده و 8 حذف شده
  1. 2 2
      examples/ambient-occlusion-mex/mexFunction.cpp
  2. 3 3
      include/igl/matlab/mexStream.cpp
  3. 3 3
      include/igl/matlab/mexStream.h

+ 2 - 2
examples/ambient-occlusion-mex/mexFunction.cpp

@@ -1,6 +1,6 @@
 #include "parse_rhs.h"
 
-#include <igl/matlab/mexStream.h>
+#include <igl/matlab/MexStream.h>
 #include <igl/embree/ambient_occlusion.h>
 
 #include <igl/read_triangle_mesh.h>
@@ -16,7 +16,7 @@ void mexFunction(int nlhs, mxArray *plhs[],
 {
   // This is useful for debugging whether Matlab is caching the mex binary
   //mexPrintf("%s %s\n",__TIME__,__DATE__);
-  igl::mexStream mout;
+  igl::MexStream mout;
   std::streambuf *outbuf = std::cout.rdbuf(&mout);
 
   using namespace std;

+ 3 - 3
include/igl/matlab/mexStream.cpp

@@ -5,10 +5,10 @@
 // This Source Code Form is subject to the terms of the Mozilla Public License 
 // v. 2.0. If a copy of the MPL was not distributed with this file, You can 
 // obtain one at http://mozilla.org/MPL/2.0/.
-#include "mexStream.h"
+#include "MexStream.h"
 #include "mex.h"
 
-inline std::streamsize igl::mexStream::xsputn(
+inline std::streamsize igl::MexStream::xsputn(
   const char *s, 
   std::streamsize n) 
 {
@@ -17,7 +17,7 @@ inline std::streamsize igl::mexStream::xsputn(
   return n;
 }
 
-inline int igl::mexStream::overflow(int c) 
+inline int igl::MexStream::overflow(int c) 
 {
     if (c != EOF) {
       mexPrintf("%.1s",&c);

+ 3 - 3
include/igl/matlab/mexStream.h

@@ -16,13 +16,13 @@ namespace igl
   // window.
   //
   // Insert at the beginning of mexFunction():
-  //  mexStream mout;
+  //  MexStream mout;
   //  std::streambuf *outbuf = std::cout.rdbuf(&mout); 
   //  ...
   //  ALWAYS restore original buffer to avoid memory leak problems in matlab
   //  std::cout.rdbuf(outbuf);
   //
-  class mexStream : public std::streambuf
+  class MexStream : public std::streambuf
   {
     public:
     protected:
@@ -31,6 +31,6 @@ namespace igl
   }; 
 }
 #ifndef IGL_STATIC_LIBRARY
-#  include "mexStream.cpp"
+#  include "MexStream.cpp"
 #endif
 #endif