version 1.3, 2001/03/04 22:18:00
|
version 1.4, 2001/03/05 21:54:29
|
|
|
| classDeclaration | | classDeclaration |
{ cimmofParser::Instance()->addClass($1); } | { cimmofParser::Instance()->addClass($1); } |
| instanceDeclaration | | instanceDeclaration |
{ cimmofParser::Instance()->addInstance($1); |
{ cimmofParser::Instance()->addInstance($1); } ; |
delete $1; } ; |
|
| |
classDeclaration: classHead classBody | classDeclaration: classHead classBody |
{ | { |
|
|
| |
instanceDeclaration: instanceHead instanceBody | instanceDeclaration: instanceHead instanceBody |
{ | { |
$$ = $1; |
$$ = g_currentInstance; |
if (g_currentAlias != String::EMPTY) | if (g_currentAlias != String::EMPTY) |
cimmofParser::Instance()->addInstanceAlias(g_currentAlias, $1, true); | cimmofParser::Instance()->addInstanceAlias(g_currentAlias, $1, true); |
}; | }; |
|
|
if (g_currentInstance) | if (g_currentInstance) |
delete g_currentInstance; | delete g_currentInstance; |
g_currentAlias = *$5; | g_currentAlias = *$5; |
g_currentInstance = new CIMInstance(*$4); |
g_currentInstance = cimmofParser::Instance()->newInstance(*$4); |
delete $4; |
|
$$ = g_currentInstance; | $$ = g_currentInstance; |
g_qualifierList.apply($$); | g_qualifierList.apply($$); |
|
delete $4; |
delete $5; | delete $5; |
} ; | } ; |
| |
|
|
const CIMProperty *oldprop = cp->PropertyFromInstance(*g_currentInstance, | const CIMProperty *oldprop = cp->PropertyFromInstance(*g_currentInstance, |
*$2); | *$2); |
const CIMValue *oldv = cp->ValueFromProperty(*oldprop); | const CIMValue *oldv = cp->ValueFromProperty(*oldprop); |
//const CIMValue *oldv = cp->PropertyValueFromInstance(*g_currentInstance, |
|
// *$2); |
|
// 3. create the new Value object of the same type | // 3. create the new Value object of the same type |
CIMValue *v = valueFactory::createValue(oldv->getType(), $3, $5); | CIMValue *v = valueFactory::createValue(oldv->getType(), $3, $5); |
// 4. create a clone property with the new value | // 4. create a clone property with the new value |