2015-05-30 04:43:01 -04:00
|
|
|
#ifndef CCODETRIPLE_H
|
|
|
|
|
#define CCODETRIPLE_H
|
|
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
#include <iostream>
|
|
|
|
|
#include "util.h"
|
|
|
|
|
|
|
|
|
|
class CCodeTriple {
|
|
|
|
|
public:
|
|
|
|
|
CCodeTriple(std::string pre, std::string val, std::string post);
|
|
|
|
|
CCodeTriple(std::string val);
|
|
|
|
|
CCodeTriple(const char* val);
|
|
|
|
|
CCodeTriple();
|
|
|
|
|
~CCodeTriple();
|
2015-06-01 01:43:23 -04:00
|
|
|
std::string oneString(bool endValue = false);
|
2015-05-30 04:43:01 -04:00
|
|
|
CCodeTriple & operator=(const CCodeTriple &rhs);
|
|
|
|
|
CCodeTriple & operator+=(const CCodeTriple &rhs);
|
|
|
|
|
|
|
|
|
|
std::string preValue;
|
|
|
|
|
std::string value;
|
|
|
|
|
std::string postValue;
|
|
|
|
|
private:
|
|
|
|
|
};
|
|
|
|
|
CCodeTriple operator+(const CCodeTriple &a, const CCodeTriple &b);
|
|
|
|
|
#endif //CCODETRIPLE_H
|