Tasks #259
Tasks #240: Refactor C++ Implementation to 2011-04-13 Domain Model
Create Scope class
Status: | Resolved | Start date: | 04/27/2011 | |
---|---|---|---|---|
Priority: | Normal | Due 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
Associated revisions
add a basic scope class
refs #259
add comparison operators to Scope class
refs #259
add a method to concatenate scopes
refs #259
add methods to compare hierarchies of scopes
refs #259
missing test for a corner case in scope hierarchy comparisons
refs #259
add a method to get all super scopes of a scope
refs #259
add a parameter to superScopes for including the current scope
refs #259
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