Esempio n. 1
0
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);
}
Esempio n. 2
0
// """ -------------------------------------------------------
//
// 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);
}
Esempio n. 3
0
// """ -------------------------------------------------------
//
// 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());
}
Esempio n. 4
0
ExplicitBitVect::ExplicitBitVect(const char *data,const unsigned int dataLen)
{
  d_size=0;dp_bits = 0;d_numOnBits=0;
  initFromText(data,dataLen);
}
Esempio n. 5
0
ExplicitBitVect::ExplicitBitVect(const std::string &s)
{
  d_size=0;dp_bits = 0;d_numOnBits=0;
  initFromText(s.c_str(),s.length());
}