pineapple-src/externals/sirit/src/literal_string.h
2020-12-28 15:15:37 +00:00

31 lines
623 B
C++
Executable File

/* This file is part of the sirit project.
* Copyright (c) 2019 sirit
* This software may be used and distributed according to the terms of the
* 3-Clause BSD License
*/
#pragma once
#include <string>
#include "operand.h"
#include "stream.h"
namespace Sirit {
class LiteralString final : public Operand {
public:
LiteralString(std::string string);
~LiteralString() override;
void Fetch(Stream& stream) const override;
std::size_t GetWordCount() const noexcept override;
bool operator==(const Operand& other) const noexcept override;
private:
std::string string;
};
} // namespace Sirit