Main Page Modules Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages

# deConsole.hpp

Go to the documentation of this file.

    00001 ///////////////////////////////////////////////////////////////////////////////
    00002 /// @file deConsole.hpp
    00003 ///
    00004 /// @brief "stdout" console
    00005 ///
    00006 /// @author Assassin
    00007 ///
    00008 /// This file is the intellectual property of Novus Delta, LLC.. Usage of the
    00009 /// contents of this file is subject to the Destiny3D Member License which
    00010 /// can be found at http://www.destiny3d.com.  Any other usage is prohibited.
    00011 ///
    00012 /// This file is distributed "AS IS" without warranty of any kind.  Novus
    00013 /// Delta, LLC. does not guarantee the fitness of the contents of this file
    00014 /// for any particular purpose.
    00015 ///
    00016 /// Copyright (C) 2001-2003 Novus Delta, LLC. All Rights Reserved.
    00017 ///
    00018 /// <hr>
    00019 ///                                 Change History
    00020 /// <hr>
    00021 ///
    00022 /// @date July 2001
    00023 /// @author Assassin
    00024 /// @remarks Creation
    00025 ///
    00026 ///////////////////////////////////////////////////////////////////////////////
    00027
    00028 #ifndef DECONSOLE_HPP
    00029 #define DECONSOLE_HPP
    00030
    00031 #include "deGlobalTypes.hpp"
    00032
    00033 #if defined(DEUTIL_DLL_EXPORTS) || defined(DESTINY3D_EXPORT_ALL)
    00034 #   define DECONSOLE_API    extern "C" DEDLL_EXPORT
    00035 #elif defined(DESTINY3D_STATIC_LINK)
    00036 #   define DECONSOLE_API    extern "C"
    00037 #else
    00038 #   define DECONSOLE_API    extern "C" DEDLL_IMPORT
    00039 #endif
    00040
    00041 #ifdef USING_DESTINY3D
    00042 #ifdef _DEBUG
    00043 #   ifdef DESTINY3D_STATIC_LINK
    00044 #       pragma comment(lib, "deUtil_sd")
    00045 #   else
    00046 #       pragma comment(lib, "deUtild")
    00047 #   endif //DESTINY3D_STATIC_LINK
    00048 #else
    00049 #   ifdef DESTINY3D_STATIC_LINK
    00050 #       pragma comment(lib, "deUtil_s")
    00051 #   else
    00052 #       pragma comment(lib, "deUtil")
    00053 #   endif //DESTINY3D_STATIC_LINK
    00054 #endif //_DEBUG
    00055 #endif //USING_DESTINY3D
    00056
    00057 enum ConsoleColor_t
    00058 {
    00059     Black,
    00060     DarkRed,
    00061     LightRed,
    00062     DarkGreen,
    00063     LightGreen,
    00064     DarkBlue,
    00065     LightBlue,
    00066     Brown,
    00067     Yellow,
    00068     DarkCyan,
    00069     LightCyan,
    00070     Purple,
    00071     Pink,
    00072     Gray,
    00073     White,
    00074 };
    00075
    00076 DECONSOLE_API void deConsole_MakeConsole();
    00077 DECONSOLE_API void deConsole_DestroyConsole();
    00078
    00079 /// set the current color for printing text on the output console
    00080 DECONSOLE_API bool deConsoleColor(ConsoleColor_t fore, ConsoleColor_t back = Black);
    00081 /// set the current position for printing text on the output console
    00082 DECONSOLE_API void deConsoleXY(int X, int Y);
    00083 /// print text on the output console
    00084 DECONSOLE_API bool deConsoleOut(const char * text, ...);
    00085
    00086 #endif