|
Public Member Functions |
| | TGenBank () |
| | Constructor.
|
| | ~TGenBank () |
| | Destructor, empty.
|
| void | load (wxString s) |
| | Loads text from file, calles parser.
|
| void | paste (wxString s) |
| | Calls parser for text.
|
| void | remap (TVector *v) |
| | Wrapper to map the current sequence to a TVector.
|
| void | remap (TVector *v, const wxArrayString &vs, const wxArrayInt &vi) |
| | Remaps the given data to a TVector.
|
| void | doExport (TVector *v, wxArrayString &ex) |
| | Create a GenBank-format list of lines from a TVector.
|
| wxString | trim (wxString s) |
| | Removes the leading blanks from a string.
|
| void | itrim (wxString &s) |
| | Removes the leading blanks from a string.
|
| void | multitrim (wxString &s, bool quotes=true) |
| | Removes the leading and ending blanks and/or quotes from a string.
|
| wxString | trimQuotes (wxString s) |
| | Removes the leading and ending quotes from a string.
|
| wxString | quote (wxString pre, wxString q) |
| | ???
|
| void | wrapit (wxArrayString &ex, wxString init, wxString data, int limit=80) |
| | Formats a new GenBank entry to a certein width.
|
| wxString | expand (wxString init, int to, wxString with=_T(" ")) |
| | Sets a string to a certain width, and fills it up if necessary.
|
| int | count_blanks (wxString &s) |
| | Counts the leading blanks in a string.
|
Public Attributes |
| bool | success |
| | Did we encounter any errors while parsing?
|
Private Member Functions |
| void | parseLines () |
| | The parser.
|
| void | addItem (TVector *v, wxArrayString &va) |
| | Adds an item to a TVector.
|
| void | iterateItem (TVector *v, TVectorItem &i, wxString l, int tag=0) |
| | Used for generating multiple items from a single GenBank item entry.
|
| bool | isValidSequence (char a) |
| | Checks if the given char is "-", A-Z, or a-z.
|
Private Attributes |
| vector< wxArrayString > | vs_l |
| | All the lines, grouped by sequences.
|
| vector< wxArrayInt > | vi_l |
| | All the line indentations.
|
| wxArrayString | vs |
| | Current sequence.
|
| wxArrayInt | vi |
| | Current line indentations.
|
| wxString | params |
| | ???
|
| wxString | title |
| | Sequence title.
|
| wxString | description |
| | Sequence description.
|
| bool | perm [256] |
| | Allowed chars.
|
| bool | validseq [256] |
| | Allowed sequence chars.
|
| bool | isblank [256] |
| | Blank chars.
|
| bool | isblankorquote [256] |
| | Blank or quote chars.
|
Friends |
| class | TAlignment |
| class | MyFrame |