Tasks #259

Tasks #240: Refactor C++ Implementation to 2011-04-13 Domain Model

Create Scope class

Added by J. Wienke about 13 years ago. Updated about 13 years ago.

Status:ResolvedStart date:04/27/2011
Priority:NormalDue date:
Assignee:J. Wienke% Done:

100%

Category:C++Estimated time:2.00 hours
Target version:-

Description

Replace every string scope with a class that maintains a list of scope components + various utility methods:
  • concat(other : Scope) : Scope
  • fromString (Constructor)
  • isSubScopeOf(other) : strict comparison, equality = false
  • isSuperScopeOf(other)
  • superScopes(includeSelf : boolean)
  • operator==
  • operator< (compares string representations using std::less<string>)

Regular expression for a valid scope is given in Glossary. Implementation normalizes missing / at end of scope.


Related issues

Related to Robotics Service Bus - Tasks #256: Move scope to Participant class Resolved 04/27/2011

Associated revisions

Revision b9ea8682
Added by J. Wienke about 13 years ago

add a basic scope class

refs #259

Revision aa238ac8
Added by J. Wienke about 13 years ago

add comparison operators to Scope class

refs #259

Revision d20d6172
Added by J. Wienke about 13 years ago

add a method to concatenate scopes

refs #259

Revision b2587d65
Added by J. Wienke about 13 years ago

add methods to compare hierarchies of scopes

refs #259

Revision db1397a9
Added by J. Wienke about 13 years ago

missing test for a corner case in scope hierarchy comparisons

refs #259

Revision 1494835e
Added by J. Wienke about 13 years ago

add a method to get all super scopes of a scope

refs #259

Revision b8f7bd0a
Added by J. Wienke about 13 years ago

add a parameter to superScopes for including the current scope

refs #259

Revision 7f9fdf4e
Added by J. Wienke about 13 years ago

Use scope class instead of string-based uris.

fixes #259

History

#1 Updated by J. Wienke about 13 years ago

  • Status changed from New to In Progress
  • Assignee changed from S. Wrede to J. Wienke

#2 Updated by J. Wienke about 13 years ago

  • % Done changed from 0 to 50

#3 Updated by J. Wienke about 13 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 50 to 100

Also available in: Atom PDF