quickbook.hpp 1.38 KB
/*=============================================================================
    Copyright (c) 2009 Daniel James
    Copyright (c) 2002 2004 2006 Joel de Guzman
    Copyright (c) 2004 Eric Niebler
    http://spirit.sourceforge.net/

    Use, modification and distribution is subject to the Boost Software
    License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
    http://www.boost.org/LICENSE_1_0.txt)
=============================================================================*/

#if !defined(BOOST_SPIRIT_QUICKBOOK_QUICKBOOK_HPP)
#define BOOST_SPIRIT_QUICKBOOK_QUICKBOOK_HPP

#include <string>
#include <time.h>
#include <vector>
#include <boost/filesystem/path.hpp>
#include "fwd.hpp"
#include "values.hpp"

namespace quickbook
{
    namespace fs = boost::filesystem;

    extern tm* current_time;    // the current time
    extern tm* current_gm_time; // the current UTC time
    extern bool debug_mode;
    extern bool self_linked_headers;
    extern std::vector<fs::path> include_path;
    extern std::vector<std::string> preset_defines;
    extern fs::path image_location;

    void parse_file(
        quickbook::state& state,
        value include_doc_id = value(),
        bool nested_file = false);
    // Some initialisation methods
    //
    // Declared here to avoid including other headers
    namespace detail
    {
        void initialise_markups();
    }
}

#endif