Skip to content
Snippets Groups Projects
positionref.cpp 323 B
#include <libwccl/values/positionref.h>
#include <sstream>

namespace Wccl {

const char* PositionRef::type_name = "PositionRef";

std::string PositionRef::to_raw_string() const
{
	std::stringstream ss;
	ss << base_->get_value();
	if (offset_ >=0) {
		ss << "+";
	}
	ss << offset_;
	return ss.str();
}

} /* end ns Wccl */