This repository has been archived on 2023-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
2016-05-20 15:29:24 +02:00
|
|
|
#include <plasp/sas/Value.h>
|
|
|
|
|
2016-05-21 01:17:17 +02:00
|
|
|
#include <iostream>
|
|
|
|
|
2016-05-20 15:29:24 +02:00
|
|
|
namespace plasp
|
|
|
|
{
|
|
|
|
namespace sas
|
|
|
|
{
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Value
|
|
|
|
//
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2016-05-21 01:17:17 +02:00
|
|
|
const Value Value::Any = {Value::Sign::Positive, "(any)"};
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
std::ostream &operator <<(std::ostream &ostream, const Value &value)
|
|
|
|
{
|
|
|
|
if (value.sign == Value::Sign::Negative)
|
|
|
|
ostream << "not ";
|
|
|
|
|
|
|
|
return (ostream << value.name);
|
|
|
|
}
|
2016-05-20 15:29:24 +02:00
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|