Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagecpp
themeConfluence
EdmiError edmiRemoteListXMLConfigurations (SdaiServerContext serverContextId, 
                                            SdaiString        schemaName, 
                                            SdaiInstance      **xmlConfigurationIds, 
                                            SdaiString        **xmlConfigurationNames, 
                                            SdaiInteger       *numberOfConfigsReturned,
                                            SdaiInvocationId  *edmiInvocationId);


Returns buffers containing the name and id of all XML Configurations associated with a given Express Schema.

Arguments

...

TypeNameComment
SdaiServerContext

serverContextId

Context identification, from edmiDefineServerContext

SdaiString

schemaName

The name of the assosiated Express Schema.

SdaiInstance

xmlConfigurationIds

Variable that will receive a pointer to an allocated buffer containing the XML Configuration Id of all the XML Configurations assosiated with the Express Schema specified by the <schemaName> argument.

SdaiString

xmlConfigurationNames

Variable that will receive a pointer to an allocated buffer containing the XML Configuration Name of all the XML Configurations assosiated with the Express Schema specified by the <schemaName> argument.

SdaiInteger

numberOfConfigsReturned

Number of elements returned in the <xmlConfigurationIds> and <xmlConfigurationNames> buffers.

SdaiInvocationId

edmiInvocationId

Currently unused

...

Return Value

...

Insert excerpt
US:_r_EDMInterface
US:_r_EDMInterface
nopaneltrue

 

Options

...

  

 

Example

...

 

Code Block
languagecpp
 int i;
 EdmiError rstat;
 SdaiServerContext myContext;
 SdaiInstance *pConfigIds, configId;
 SdaiString *pConfigNames, configString;
 SdaiInteger nConfig;
 SdaiString nameSpace, nameSpaceAlias, xmlSchemaURL;
  
 /* Create Server Context */
 rstat = edmiDefineServerContext("MyContext",

...


 "Johnny", "Supervisor", "cf37ftr",

...

 
 "TCP", "9090", "MyServerHost",

...

 
 NULL, NULL, NULL, NULL, NULL, &myContext);

...

 
 /* Get all xml configurations */

...


 rstat = edmiRemoteListXMLConfigurations(myContext,"IFC2X2_FINAL",

...


 &pConfigIds, &pConfigNames, &nConfig, NULL);

...

 
  
 /* Delete them one by one */

...


 for (i=0; i<nConfig; i++) {

...


 rstat = edmiRemoteGetXMLConfiguration(myContext,

...


 "IFC2X2_FINAL", pConfigNames[i],

...

 
 &configId, &configString, &nameSpace,

...

 
 &nameSpaceAlias, &xmlSchemaURL, NULL);

...

 
 printf("\nDeleting Configuration %s", nameSpaceAlias);

...

 
 rstat = edmiRemoteDeleteXMLConfiguration(myContext, "IFC2X2_FINAL",

...

 
 pConfigNames[i], NULL);

...

 
 }
 . . .

 

See also

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "model" and parent = "6062220"