Colorized PDDL translator output.
This commit is contained in:
@@ -33,12 +33,17 @@ class TranslatorASP
|
||||
void translateInitialState() const;
|
||||
void translateGoal() const;
|
||||
|
||||
void translateConstants(const std::string &header, const expressions::Constants &constants) const;
|
||||
void translateConstants(const std::string &heading, const expressions::Constants &constants) const;
|
||||
void translateVariablesHead(const expressions::Variables &variables) const;
|
||||
void translateVariablesBody(const expressions::Variables &variables) const;
|
||||
void translateLiteral(const Expression &literal) const;
|
||||
void translatePredicate(const expressions::Predicate &predicate) const;
|
||||
|
||||
void printHeading1(const std::string &heading) const;
|
||||
void printHeading2(const std::string &heading) const;
|
||||
void printKeyword(const std::string &keyword) const;
|
||||
void printVariable(const std::string &variable) const;
|
||||
|
||||
const Description &m_description;
|
||||
utils::LogStream &m_outputStream;
|
||||
};
|
||||
|
@@ -52,7 +52,7 @@ struct Format
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
LogStream &operator<<(LogStream &stream, const Format &format)
|
||||
inline LogStream &operator<<(LogStream &stream, const Format &format)
|
||||
{
|
||||
if (!stream.supportsColor())
|
||||
return stream;
|
||||
@@ -71,7 +71,7 @@ class ResetFormat
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
LogStream &operator<<(LogStream &stream, const ResetFormat &)
|
||||
inline LogStream &operator<<(LogStream &stream, const ResetFormat &)
|
||||
{
|
||||
if (!stream.supportsColor())
|
||||
return stream;
|
||||
|
@@ -244,7 +244,7 @@ LogStream &LogStream::operator<<(std::basic_ostream<CharacterType, TraitsType> &
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
template<class CharacterType, class Traits, class Allocator>
|
||||
LogStream &operator<<(LogStream &stream, const std::basic_string<CharacterType, Traits, Allocator> &string)
|
||||
inline LogStream &operator<<(LogStream &stream, const std::basic_string<CharacterType, Traits, Allocator> &string)
|
||||
{
|
||||
stream.ostream() << string;
|
||||
return stream;
|
||||
|
Reference in New Issue
Block a user