.. _program_listing_file_src_popf_globals.h: Program Listing for File globals.h ================================== |exhale_lsh| :ref:`Return to documentation for file ` (``src/popf/globals.h``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp /************************************************************************ * Copyright 2010, Strathclyde Planning Group, * Department of Computer and Information Sciences, * University of Strathclyde, Glasgow, UK * http://planning.cis.strath.ac.uk/ * * Andrew Coles, Amanda Coles - Code for POPF * Maria Fox, Richard Howey and Derek Long - Code from VAL * Stephen Cresswell - PDDL Parser * * This file is part of the planner POPF. * * POPF is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * POPF 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 * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with POPF. If not, see . * ************************************************************************/ #ifndef __GLOBALS #define __GLOBALS #ifndef NDEBUG #define ENABLE_DEBUGGING_HOOKS 1 #endif #include using Inst::Literal; namespace Planner { struct LiteralLT { bool operator()(const Literal* const & a, const Literal* const & b) const { return (a->getID() < b->getID()); } }; typedef map StepAndEpsilon; typedef set LiteralSet; class Globals { public: static const int & globalVerbosity; static int writeableVerbosity; static bool paranoidScheduling; static bool profileScheduling; #ifdef ENABLE_DEBUGGING_HOOKS static vector actionHasToBeKept; static const char * planFilename; static void markThatActionsInPlanHaveToBeKept(); static void eliminatedAction(const int & i, const char * synopsis); #endif }; }; #endif