Changeset 3598
- Timestamp:
- 05/02/07 14:26:45 (6 years ago)
- Location:
- ossie/trunk/ossie
- Files:
-
- 2 added
- 4 modified
-
include/ossie/Makefile.am (modified) (1 diff)
-
include/ossie/SADComponentFile.h (added)
-
include/ossie/SADParser.h (modified) (2 diffs)
-
parser/Makefile.am (modified) (1 diff)
-
parser/SADComponentFile.cpp (added)
-
parser/SADParser.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ossie/trunk/ossie/include/ossie/Makefile.am
r3366 r3598 1 pkginclude_HEADERS = ApplicationFactory_impl.h LoadableDevice_impl.h Application_impl.h orb_wrap.h automaticTest.h OS_config.h ComponentAssemblyParser.h ossiecf.h ComponentInstantiation.h ossieparser.h ComponentPlacement.h Port.h ComponentSupportedInterface.h Port_impl.h Connection.h PortSupplier_impl.h DCDComponentInstantiation.h PRFParser.h PRFProperty.h DCDComponentPlacement.h PRFSimpleProperty.h PRFSimpleSequenceProperty.h DCDConnectionParser.h PropertySet_impl.h DCDInstantiationProperty.h ProvidesPort.h DCDParser.h Resource_impl.h Device_impl.h SADComponentInstantiation.h DeviceManager_impl.h SADComponentPlacement.h DMDParser.h SADHostCollocation.h DomainManager_impl.h SADParser.h ExecutableDevice_impl.h SCDParser.h ExternalPort.h SPDAuthor.h File_impl.h SPDImplementation.h FileManager_impl.h SPDParser.h FileSystem_impl.h SPDUsesDevice.h FindBy.h InstantiationProperty.h TestableObject_impl.h LifeCycle_impl.h UsesPort.h ossieSupport.h portability.h prop_helpers.h debug.h 1 pkginclude_HEADERS = ApplicationFactory_impl.h LoadableDevice_impl.h Application_impl.h orb_wrap.h automaticTest.h OS_config.h ComponentAssemblyParser.h ossiecf.h ComponentInstantiation.h ossieparser.h ComponentPlacement.h Port.h ComponentSupportedInterface.h Port_impl.h Connection.h PortSupplier_impl.h DCDComponentInstantiation.h PRFParser.h PRFProperty.h DCDComponentPlacement.h PRFSimpleProperty.h PRFSimpleSequenceProperty.h DCDConnectionParser.h PropertySet_impl.h DCDInstantiationProperty.h ProvidesPort.h DCDParser.h Resource_impl.h Device_impl.h SADComponentInstantiation.h DeviceManager_impl.h SADComponentPlacement.h DMDParser.h SADHostCollocation.h DomainManager_impl.h SADParser.h ExecutableDevice_impl.h SCDParser.h ExternalPort.h SPDAuthor.h File_impl.h SPDImplementation.h FileManager_impl.h SPDParser.h FileSystem_impl.h SPDUsesDevice.h FindBy.h InstantiationProperty.h TestableObject_impl.h LifeCycle_impl.h UsesPort.h ossieSupport.h portability.h prop_helpers.h debug.h SADComponentFile.h 2 2 -
ossie/trunk/ossie/include/ossie/SADParser.h
r3593 r3598 32 32 #include "ossie/ComponentAssemblyParser.h" 33 33 #include "ossie/SADComponentPlacement.h" 34 #include "ossie/SADComponentFile.h" 34 35 #include "ossie/SADHostCollocation.h" 35 36 #include "ossie/ExternalPort.h" … … 54 55 SADComponentInstantiation* assemblyControllerInstantiation; 55 56 std::vector <SADComponentPlacement*> components; 57 std::vector <SADComponentFile*> componentFiles; 56 58 std::vector <SADHostCollocation*> hostCollocations; 57 59 std::vector <ExternalPort*> externalPorts; 58 60 59 61 void parseFile(TiXmlHandle docHandle); 62 void parseComponentFiles(TiXmlHandle docHandle); 60 63 void parseComponents(TiXmlHandle docHandle); 61 64 void parseHostCollocation(TiXmlHandle docHandle); -
ossie/trunk/ossie/parser/Makefile.am
r3366 r3598 1 1 lib_LTLIBRARIES = libossieparser.la 2 libossieparser_la_SOURCES = ComponentAssemblyParser.cpp Port.cpp ComponentInstantiation.cpp PRFParser.cpp ComponentPlacement.cpp PRFProperty.cpp PRFSimpleProperty.cpp PRFSimpleSequenceProperty.cpp ComponentSupportedInterface.cpp ProvidesPort.cpp Connection.cpp SADComponentInstantiation.cpp DCDComponentInstantiation.cpp SADComponentPlacement.cpp DCDComponentPlacement.cpp SADHostCollocation.cpp DCDConnectionParser.cpp SADParser.cpp DCDInstantiationProperty.cpp SCDParser.cpp DCDParser.cpp SPDAuthor.cpp DMDParser.cpp SPDImplementation.cpp ExternalPort.cpp SPDParser.cpp FindBy.cpp SPDUsesDevice.cpp InstantiationProperty.cpp orb_wrap.cpp UsesPort.cpp ORB.cpp EventChannelSupport.cpp prop_helpers.cpp tinystr.cpp tinyxml.cpp tinyxmlerror.cpp tinyxmlparser.cpp 2 libossieparser_la_SOURCES = ComponentAssemblyParser.cpp Port.cpp ComponentInstantiation.cpp PRFParser.cpp ComponentPlacement.cpp PRFProperty.cpp PRFSimpleProperty.cpp PRFSimpleSequenceProperty.cpp ComponentSupportedInterface.cpp ProvidesPort.cpp Connection.cpp SADComponentInstantiation.cpp DCDComponentInstantiation.cpp SADComponentPlacement.cpp DCDComponentPlacement.cpp SADHostCollocation.cpp DCDConnectionParser.cpp SADParser.cpp DCDInstantiationProperty.cpp SCDParser.cpp DCDParser.cpp SPDAuthor.cpp DMDParser.cpp SPDImplementation.cpp ExternalPort.cpp SPDParser.cpp FindBy.cpp SPDUsesDevice.cpp InstantiationProperty.cpp orb_wrap.cpp UsesPort.cpp ORB.cpp EventChannelSupport.cpp prop_helpers.cpp tinystr.cpp tinyxml.cpp tinyxmlerror.cpp tinyxmlparser.cpp SADComponentFile.cpp 3 3 4 4 pkginclude_HEADERS = tinystr.h tinyxml.h -
ossie/trunk/ossie/parser/SADParser.cpp
r3593 r3598 64 64 { 65 65 66 parseComponentFiles(docHandle); 66 67 parseComponents(docHandle); 67 68 parseHostCollocation(docHandle); 68 69 parseAssemblyController(docHandle); 69 70 parseExternalPorts(docHandle); 71 } 72 73 void SADParser::parseComponentFiles(TiXmlHandle docHandle) 74 { 75 DEBUG(6, SADParser, "About to parse component files"); 76 77 TiXmlElement *cf = docHandle.FirstChild("componentfiles").FirstChild("componentfile").Element(); 78 79 for (; cf; cf = cf->NextSiblingElement()) { 80 componentFiles.push_back (new SADComponentFile (cf)); 81 } 70 82 } 71 83 … … 179 191 } 180 192 181 const char *SADParser::getSPDById(const char *refId) 182 { 183 184 } 193 const char *SADParser::getSPDById(const char *_refId) 194 { 195 std::string refId(_refId); 196 197 for(unsigned int i(0); i < componentFiles.size(); ++i) { 198 std::string testId = componentFiles[i]->getId(); 199 200 if (refId == testId) 201 return componentFiles[i]->getFileName(); 202 } 203 204 return NULL; 205 }