diff --git a/include/dynamic-graph/contiifstream.h b/include/dynamic-graph/contiifstream.h index 6f82d78cc2ab73ddd84a640feefcb639c8468161..3ab33f4d601b7c21931b7b0128802699df7c9ff3 100644 --- a/include/dynamic-graph/contiifstream.h +++ b/include/dynamic-graph/contiifstream.h @@ -43,44 +43,44 @@ /* --- API ------------------------------------------------------------- */ /* --------------------------------------------------------------------- */ -#if defined (WIN32) +#if defined (WIN32) # if defined (sotContiifstream_EXPORTS) # define DYNAMICGRAPHCONTIIFSTREAM_EXPORT __declspec(dllexport) -# else +# else # define DYNAMICGRAPHCONTIIFSTREAM_EXPORT __declspec(dllimport) -# endif +# endif #else # define DYNAMICGRAPHCONTIIFSTREAM_EXPORT #endif namespace dynamicgraph { -/* --------------------------------------------------------------------- */ -/* --- CLASS ----------------------------------------------------------- */ -/* --------------------------------------------------------------------- */ -class DYNAMICGRAPHCONTIIFSTREAM_EXPORT Contiifstream -{ -protected: - std::string filename; - unsigned int cursor; - static const unsigned int BUFFER_SIZE = 256; - char buffer[BUFFER_SIZE]; - std::list< std::string > reader; - bool first; - -public: /* --- Constructor --- */ - Contiifstream( const std::string& n="" ); - ~Contiifstream( void ); - void open( const std::string& n ) { filename=n; cursor=0; } - -public: /* --- READ FILE --- */ - bool loop( void ); - -public: /* --- READ LIST --- */ - inline bool ready( void ) { return 0<reader.size();} - std::string next( void ) ; - - -}; + /* --------------------------------------------------------------------- */ + /* --- CLASS ----------------------------------------------------------- */ + /* --------------------------------------------------------------------- */ + class DYNAMICGRAPHCONTIIFSTREAM_EXPORT Contiifstream + { + protected: + std::string filename; + unsigned int cursor; + static const unsigned int BUFFER_SIZE = 256; + char buffer[BUFFER_SIZE]; + std::list< std::string > reader; + bool first; + + public: /* --- Constructor --- */ + Contiifstream( const std::string& n="" ); + ~Contiifstream( void ); + void open( const std::string& n ) { filename=n; cursor=0; } + + public: /* --- READ FILE --- */ + bool loop( void ); + + public: /* --- READ LIST --- */ + inline bool ready( void ) { return 0<reader.size();} + std::string next( void ) ; + + + }; } // namespace dynamicgraph #endif /* #ifndef __CONTIIFSTREAM_HH__ */