#ifndef UTILITIES_H #define UTILITIES_H /////////////////////////////////////////////////////////////////////////////////////// // Utilities.h - Provide small set of utility functions // // ver 1.1 // // Application: Support for Repository Programs, Summer 2015 // // Platform: Dell XPS 2720, Win 8.1, Visual Studio 2013 // // Author: Jim Fawcett, CST 4-187, Syracuse University // // (315) 443-3948, jfawcett@twcny.rr.com // /////////////////////////////////////////////////////////////////////////////////////// /* * Package Operations: * ------------------- * Utilities implements only one function - more are planned. It is configured to * be packaged as either a DLL or a static library. * * Required Files: * --------------- * Utilities.h, Utilities.cpp * * Build Process: * -------------- * From the Visual Studio Developer's Command Prompt: * devenv VSHelp.sln /rebuild debug * * Maintenance History: * -------------------- * -Ver 1.1 : 30 May 2013 * - edited comments * - added printLine() * -Ver 1.0 : 01 Mar 2015 * first release */ #include #ifdef IN_DLL #define DECL __declspec(dllexport) #else #define DECL __declspec(dllimport) #endif #ifdef STATIC_LIB #pragma warning(disable : 4005) // disable redefinition warning #define DECL // that's what we want to do #endif namespace Repository { DECL void title(const std::string& title, char underline = '-'); DECL void printLine(size_t n=1); } #endif