Ticket #135 (closed enhancement: fixed)

Opened 18 months ago

Last modified 6 weeks ago

extend cobiaRegister functionality

Reported by: jasper Owned by: jasper
Priority: minor Milestone: Phase III WP1
Component: Registry Version:
Keywords: Cc:

Description

We have reverse lookups for PCM uuids, Enum uuids and catID uuids. However, we only have a listing for all PMCs uuids. Make functionality to list all Enum uuids and all Cat ID uuids in the registry.

Change History

comment:1 Changed 18 months ago by jasper

  • Milestone changed from Maintenance of Phase II to Phase III WP1

This requires type info in the registry - which is part of phase III. Although there is no direct way to list all categories and enumerations using the cobiaRegister tool, you can list the type libraries and what is in it - so get to the information in this manner:

C:\werk\CO\phaseIII\COBIA\x64\bin\RelWithDebInfo>cobiaregister
Please specify path
Usage: cobiaRegister [-u] path-to-module
       cobiaRegister [-u] [-a] path-to-cidl [path-to-cidl [...]]
       cobiaRegister -?
       cobiaRegister -l
       cobiaRegister -t
       cobiaRegister -i [class-id or prog-id]
       cobiaRegister -i library-id
       cobiaRegister -i interface-id
       cobiaRegister -r [class-id or prog-id]
       cobiaRegister -r library-id
?: show this message
a: all users (default is current user only)
u: unregister (default is register)
l: list all registered PMCs
t: list all registered type libraries
i: display info for specified PMC, type library or type
r: remove registration of specified PMC or type library
s: suppress (un)registration OK message
path-to-module: (PMC-) module to register

cobiaRegister is a console application.
wCobiaRegister reports output via a MessageBox.

C:\werk\CO\phaseIII\COBIA\x64\bin\RelWithDebInfo>cobiaRegister -t
{3b78cdeb-7fe8-4542-b58b-26205774d82a}: CAPEOPEN
{8d1d724f-ab15-48e5-80e4-a612468e68d4}: CAPEOPEN_1_2

C:\werk\CO\phaseIII\COBIA\x64\bin\RelWithDebInfo>cobiaRegister -i CAPEOPEN
Error: no such PMC

C:\werk\CO\phaseIII\COBIA\x64\bin\RelWithDebInfo>cobiaRegister -i {3b78cdeb-7fe8-4542-b58b-26205774d82a}
Library = CAPEOPEN
Version = 1.2
Path = C:\Users\jasper\AppData\Local\CAPE-OPEN Laboratories Network\COBIA\3B78CDEB-7FE8-4542-B58B-26205774D82A.cidl
{678c09a5-7d66-11d2-a67d-00105a42887f}: category UnitOperation
{cf51e383-0110-4ed8-acb7-b50cfde6908e}: category PropertyPackageManager
{cf51e384-0110-4ed8-acb7-b50cfde6908e}: category StandAlonePropertyPackage
{cf51e385-0110-4ed8-acb7-b50cfde6908e}: category PhysicalPropertyCalculator
{cf51e386-0110-4ed8-acb7-b50cfde6908e}: category EquilibriumCalculator
{7ba1af89-b2e4-493d-bd80-2970bf4cbe99}: category FlowsheetMonitoringComponent

C:\werk\CO\phaseIII\COBIA\x64\bin\RelWithDebInfo>cobiaRegister -i {8d1d724f-ab15-48e5-80e4-a612468e68d4}
Library = CAPEOPEN_1_2
Version = 1.2
Path = C:\Users\jasper\AppData\Local\CAPE-OPEN Laboratories Network\COBIA\8D1D724F-AB15-48E5-80E4-A612468E68D4.cidl
{37e03033-63b9-4f55-b5c4-807bede03deb}: category Component_1_2
{3f9bf2f8-0f62-400d-9f5e-2c17b6bdcf47}: enumeration CapeParamType
{a458ec57-d153-454d-b641-4aef206d0969}: enumeration CapeDimensionality
{a1c20527-0f59-4dc3-b898-265e29602a4d}: enumeration CapePersistedDataType
{bed8fe91-0bed-455b-a1ed-42a0a7eb8c9b}: enumeration CapeParamMode
{f679b429-1a20-4f5b-b1e5-24390f039e65}: enumeration CapeValidationStatus
{a64fa96e-3024-4b7b-b4f7-86efce711048}: enumeration CapeCalculationCode
{18dd06c5-be1a-430d-9bb0-2dad7e3d365c}: enumeration CapePhaseStatus
{106118ee-295c-4cfc-9fa4-d9b713f0ad9c}: enumeration CapeEditResult
{bee40992-6130-48d6-87d8-e46dfd911095}: enumeration CapePortType
{ee7320a3-71a4-4002-b519-3794f350333f}: enumeration CapePortDirection
{18a35f66-8317-4e44-b47c-743b0941e765}: enumeration CapeSolutionStatus
{7d33b558-3371-4ed6-a88b-735a5604ce70}: enumeration CapeStreamType
{1a29323c-7e18-4f33-93e6-b7ac8bad312c}: enumeration CapeMonitoringEvent
{12ebf184-f47a-4407-b52a-7fcc0a70451c}: interface ICapeIdentification
{b135a443-2ed8-45ef-bb2d-e68d2e631c31}: interface ICapeCollection
{dba6931f-390c-4229-9b36-d65979dbd0c0}: interface ICapeParameter
{d275b85e-94e4-4ca2-84de-d07f729f558a}: interface ICapeRealParameter
{a97ac097-0fd0-4226-99ba-d1c9ae41bddd}: interface ICapeIntegerParameter
{f26ce527-3277-4424-a629-7f9308dba7d3}: interface ICapeStringParameter
{33bef42d-7348-4141-b6d7-e2efb3714667}: interface ICapeBooleanParameter
{aeeb1d66-8227-48bd-9a05-3150d0df4e5d}: interface ICapeArrayParameter
{961866f0-b196-4554-b950-5599ade260d5}: interface ICapeArrayRealParameter
{22103a3b-fb08-43d1-83eb-56982a2ea8ba}: interface ICapeArrayIntegerParameter
{037751f9-37e7-4f61-b70a-5bf5751cc34a}: interface ICapeArrayStringParameter
{bb6bf334-f5b4-4e08-9feb-135de821b92f}: interface ICapeArrayBooleanParameter
{72e7e2ae-9f00-40ba-8612-bff233085efd}: interface ICapeParameterSpecification
{f056533c-9f56-4487-8fc9-0047a57aeb53}: interface ICapeRealParameterSpecification
{72059585-3858-43ca-9932-e3a8a8c80748}: interface ICapeIntegerParameterSpecification
{7da3530a-8243-4160-8255-dfb89a0ada2a}: interface ICapeStringParameterSpecification
{036043d9-618f-45d3-a64f-456867526ab7}: interface ICapeBooleanParameterSpecification
{10065170-0cb9-4997-9f19-38957e0184d6}: interface ICapeArrayParameterSpecification
{f127f898-a7c3-41a1-a7f5-58cb35995b44}: interface ICapeArrayRealParameterSpecification
{7b51d2b9-14ad-4fa8-b26e-8f632776c802}: interface ICapeArrayIntegerParameterSpecification
{43af3ba8-2206-4ab0-b464-513f01663a12}: interface ICapeArrayStringParameterSpecification
{38792ca7-3545-4a1b-9e87-cd8556127de9}: interface ICapeArrayBooleanParameterSpecification
{275cb083-4f4f-41a8-ba08-5211b8d48ae8}: interface ICapeUtilities
{48b211c4-a158-46c2-8982-f8bba64410ba}: interface ICapeSimulationContext
{d3035846-beaa-4dac-af98-74f09aa17f35}: interface ICapeDiagnostic
{b75a6437-07fe-4ef0-a167-efca0be52cd8}: interface ICapeMaterialManager
{73453e94-6418-4f6a-ab31-d28a69169553}: interface ICapeCOSEUtilities
{f7e3517a-4922-4d55-a214-bb53755e7d01}: interface ICapeThermoMaterial
{6daac236-885c-470a-8286-36805bed4361}: interface ICapeThermoMaterialContext
{309dc515-ae97-4fbe-8aa1-a08e1359ff69}: interface ICapeThermoCompounds
{d80901a2-59a2-43b4-8094-feac64f3c7e0}: interface ICapeThermoPhases
{82f6a458-2cd7-4d5d-8d6f-b80278da3edb}: interface ICapeThermoPropertyRoutine
{33543f96-9708-4ef3-9227-3f8d375f6eb5}: interface ICapeThermoEquilibriumRoutine
{be147dcf-11e0-4ede-964a-a43fa553a990}: interface ICapeThermoUniversalConstant
{a3a94f1e-32f1-47e3-b019-5718fa560757}: interface ICapeThermoPropertyPackageManager
{af5c2c3f-57e1-4785-837f-7a93dbcd03fb}: interface ICapeUnit
{a60d7a23-504d-4ada-b6cb-09d6d94d319e}: interface ICapeUnitPort
{a8c7928a-e288-4e83-adbd-0abb394ae5a6}: interface ICapePersistWriter
{827418a6-6515-40cf-81a7-dab8cf8fa176}: interface ICapePersistReader
{aba65dc8-93f9-4953-897d-a8fa8ea4eeae}: interface ICapePersist
{99d20668-ca44-4237-8b13-8d5135f4d165}: interface ICapeReport
{35b57815-fc6d-4c03-abbb-e2f5da7677b0}: interface ICapeFlowsheetMonitoringComponent
{ac5f8816-bd51-4b3d-b7a4-05ffdddef1c3}: interface ICapeStream
{eb4e3b42-77fe-41c5-8148-476082cc0253}: interface ICapeFlowsheetMonitoringEventSink
{6b1cf4a3-a3e3-4e96-9a10-7375006372f5}: interface ICapeFlowsheetMonitoring
{82b7dabc-66d2-4fef-9a21-95a74400b2b2}: interface ICapeThermoMaterialCustomData
{97c80ab8-95d7-46d8-9029-5c1672d236c9}: interface ICapeCustomDataSource

Do we still want to proceed with this and add options to list all categories and all enumerations in all libraries?

comment:2 Changed 6 weeks ago by kyle

  • Status changed from new to closed
  • Resolution set to fixed

This can be done with the display info option [ -i ] with the type library uuid

Note: See TracTickets for help on using tickets.