ElementProperty::ElementProperty(Element *parent, ConfProperty *prop):DataValue(prop->type) { this->parent = parent; name = prop->name; info = prop->info; list = prop->list; type = prop->type; flag = prop->flags; group = prop->group; lock = false; defValue = createValue(type); if(!prop->value.empty()) initFromText(prop->value, true); }
// """ ------------------------------------------------------- // // Construct a SparseBitVect from a binary string stored as a char *. // The format of the string should be // the format produced by SparseBitVect::toString // // """ ------------------------------------------------------- SparseBitVect::SparseBitVect(const char *data, const unsigned int dataLen) { d_size = 0; dp_bits = 0; initFromText(data, dataLen); }
// """ ------------------------------------------------------- // // Construct a SparseBitVect from a binary string. // The format of the string should be // the format produced by SparseBitVect::toString // // """ ------------------------------------------------------- SparseBitVect::SparseBitVect(const std::string &s) { d_size = 0; dp_bits = 0; initFromText(s.c_str(), s.length()); }
ExplicitBitVect::ExplicitBitVect(const char *data,const unsigned int dataLen) { d_size=0;dp_bits = 0;d_numOnBits=0; initFromText(data,dataLen); }
ExplicitBitVect::ExplicitBitVect(const std::string &s) { d_size=0;dp_bits = 0;d_numOnBits=0; initFromText(s.c_str(),s.length()); }