string squash

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry
2026-03-28 19:13:35 -07:00
parent b9e439f41c
commit 6742692876
179 changed files with 4256 additions and 4745 deletions

View File

@@ -24,22 +24,28 @@
#pragma once
#include <string>
#include <string_view>
namespace sta {
class SdcCmdComment
{
public:
SdcCmdComment();
SdcCmdComment(const char *comment);
const char *comment() { return comment_; }
void setComment(const char *comment);
SdcCmdComment(std::string comment);
SdcCmdComment(std::string_view comment);
const std::string &comment() { return comment_; }
const std::string &comment() const { return comment_; }
void setComment(std::string comment);
void setComment(std::string_view comment);
protected:
// Destructor is protected to prevent deletion of a derived
// class with a pointer to this base class.
~SdcCmdComment();
char *comment_;
std::string comment_;
};
} // namespace