10static const char*
const fmt_tech =
"[TECH=%08lX]";
18 std::string
str =
"[FILE=";
29 for (
const char* p1 = source.c_str(); p1; p1 = ::strchr(++p1,
'[')) {
30 const char* p2 = ::strchr(p1,
'=');
31 const char* p3 = ::strchr(p1,
']');
32 if (p2 != 0 && p3 != 0) {
33 if (::strncmp(
"[FILE=", p1, 6) == 0) {
35 }
else if (::strncmp(
"[CONT=", p1, 6) == 0) {
37 }
else if (::strncmp(
fmt_tech, p1, 6) == 0) {
40 while (*(p2 + 1) ==
'[' && p3 && *(++p3) != 0 && *p3 !=
']') {
41 p3 = ::strchr(p3,
']');
43 if (!p3) p3 = source.c_str() + source.size();
static const char *const fmt_tech
This file contains the class definition for the Placement class (migrated from POOL).
long unsigned m_technology
Technology identifier.
std::string m_fileName
File name.
std::string m_containerName
Container name.
const std::string toString() const
Retrieve the string representation of the placement.
Placement()
Default Constructor.
Placement & fromString(const std::string &from)
Build from the string representation of a placement.
std::string m_auxString
Auxiliary string.