Overview
Comment: | Added code to distinguish Ports from Components. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
ddde0b49810cf3d79a209d20f50e6bcf |
User & Date: | david-hoover@users.sourceforge.net on 2002-12-04 13:24:16 |
Other Links: | branch diff | manifest | tags |
Context
2002-12-06
| ||
11:45:57 | Strips comments from _cmp.txt before processing check-in: fc25717e96 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
2002-12-04
| ||
13:24:16 | Added code to distinguish Ports from Components. check-in: ddde0b4981 user: david-hoover@users.sourceforge.net tags: origin/master, trunk | |
12:22:53 |
dia2abg.pl now has option abg_file which default to $sys_abg.m instead of stdout. Made appropriate changes in abg2cmp_dia2txt and abg_dia2m. dia usage() now print usage without error message. check-in: d9925398f4 user: david-hoover@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/trans/dia2abg.pl from [d84745ea9f] to [4fe08566f1].
︙ | |||
282 283 284 285 286 287 288 | 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 | - + + + + + - - - - - - - + + + + + + + - + + - + + + - + | # Subsystems and Ports EOF } sub output_component { |
︙ | |||
547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 | 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 | + + + + + + - + | die " I found no text subnode of " . $node->getNodeName . "." unless $subnode->getNodeType == TEXT_NODE; } sub id_cleaner { s/#?([^#]*)#?/$1/; } sub remove_brackets { s/^\[([^\]]*)\]$/$1/; } sub id_to_type { my ( $id )= @_; my($type,$name); $_ = $component_id_tag{$id}; id_cleaner(); ($type, $name) = split(/:/); return $type; } # If 1 LHS argument is used, it returns component name. If 2 are used, it return # "subsystem" or "port" depending on whether brackets are found in the name. sub id_to_name { my ( $id )= @_; my($type,$name); $_ = $component_id_tag{$id}; id_cleaner(); ($type, $name) = split(/:/); if(!defined($name)) { $name = $id }; |
︙ |