PIConstChars

This commit is contained in:
2022-04-29 23:53:07 +03:00
parent 8c8553a6af
commit 6881fd13b7
9 changed files with 294 additions and 29 deletions

View File

@@ -206,16 +206,6 @@ PIObject::~PIObject() {
}
PIMap<PIString, PIVariant> PIObject::properties() const {
PIMap<PIString, PIVariant> ret;
for (const PropertyHash & p : properties_) {
ret[PIStringAscii(p.second.first)] = p.second.second;
}
return ret;
}
bool PIObject::execute(const PIString & method, const PIVector<PIVariantSimple> & vl) {
@@ -698,7 +688,7 @@ void PIObject::dump(const PIString & line_prefix) const {
auto it = properties_.makeIterator();
while (it.next()) {
if (it.key() != piHashData((const uchar *)o_name, strlen(o_name)))
PICout(PICoutManipulators::AddNewLine) << line_prefix << " " << it.value().first << ": " << it.value().second;
PICout(PICoutManipulators::AddNewLine) << line_prefix << " " << it.key() << ": " << it.value();
}
//printf("dump %d properties ok\n", properties_.size());
PICout(PICoutManipulators::AddNewLine) << line_prefix << " }";