From: <nar...@us...> - 2011-04-27 05:53:26
|
Revision: 987 http://xlw.svn.sourceforge.net/xlw/?rev=987&view=rev Author: narinder-claire Date: 2011-04-27 05:53:20 +0000 (Wed, 27 Apr 2011) Log Message: ----------- oops .. forgot to add check these in for logger demo Added Paths: ----------- Dev5/xlw/xlw/examples/LoggerDemo/common_source/Test.cpp Dev5/xlw/xlw/examples/LoggerDemo/common_source/Test.h Added: Dev5/xlw/xlw/examples/LoggerDemo/common_source/Test.cpp =================================================================== --- Dev5/xlw/xlw/examples/LoggerDemo/common_source/Test.cpp (rev 0) +++ Dev5/xlw/xlw/examples/LoggerDemo/common_source/Test.cpp 2011-04-27 05:53:20 UTC (rev 987) @@ -0,0 +1,35 @@ + +/* + Copyright (C) 2011 Narinder S Claire + + This file is part of XLW, a free-software/open-source C++ wrapper of the + Excel C API - http://xlw.sourceforge.net/ + + XLW is free software: you can redistribute it and/or modify it under the + terms of the XLW license. You should have received a copy of the + license along with this program; if not, please email xlw...@li... + + This program is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + FOR A PARTICULAR PURPOSE. See the license for more details. +*/ + +#ifdef _MSC_VER +#pragma warning (disable : 4996) +#endif + +#include "Test.h" +#include "xlwLogger.h" +#include <ctime> +#include <windows.h> +#include <cstdlib> + +double // tests logger +crand() +{ + _LOGGER << "Called crand()"; + int r = std::rand(); + _LOGGER << "Generated randomg number " << r; + return double(r); +} + Added: Dev5/xlw/xlw/examples/LoggerDemo/common_source/Test.h =================================================================== --- Dev5/xlw/xlw/examples/LoggerDemo/common_source/Test.h (rev 0) +++ Dev5/xlw/xlw/examples/LoggerDemo/common_source/Test.h 2011-04-27 05:53:20 UTC (rev 987) @@ -0,0 +1,22 @@ +// +// +// Test.h +// + +#ifndef TEST_H +#define TEST_H + +#include <xlw/MyContainers.h> +#include <xlw/CellMatrix.h> +#include <xlw/DoubleOrNothing.h> +#include <xlw/ArgList.h> + + +using namespace xlw; + +//<xlw:libraryname=testLogger + +double // tests logger +crand(); + +#endif // TEST_H \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |