-
Notifications
You must be signed in to change notification settings - Fork 39
New vectorBaseTypes #641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
In addition to the above list of new vectorBaseTypes: uIDReferenceVectorBaseTypeTo be honest, we should try to avoid the use of such a type in CPACS and use an XML sequence of elements of type As I want to call it <xsd:pattern value="([\i-[:]][\c-[:]]+)(;([\i-[:]][\c-[:]]+))*"/> |
Added with a27d18b:
|
The new basic types seem to fulfill their purpose well. Must now be tested in practice. |
For the sake of completeness: empty characters are added as valid characters to the new base-types via fa31cea. |
Problem
In CPACS all vectors have the type
stringVectorBaseType
. This allows any kind of strings (e.g., comma seperated lists) and does not explicitly specify what to expect from such elements if not written in the documentation.Possible Solution
I therefore propose to add new vectorBaseTypes which inherit from the
stringVectorBaseType
and further restrict the content.doubleVectorBaseType
stringVectorBaseType
to the following pattern:Example: (see example file for latest updates):
intVectorBaseType
stringVectorBaseType
to the following pattern:Example:
posIntVectorBaseType
pointIDs
in Revision of loadCases #637stringVectorBaseType
to the following pattern:Example:
Open questions & potential extensions
mapType
seems superfluous and is set to optional so that old data sets are still valid (see Make tixiGetFloatVector independent of mapType attribute DLR-SC/tixi#143). Did I miss a certain reason to enforce this attribute?The text was updated successfully, but these errors were encountered: