Ignore:
Timestamp:
07/18/16 04:16:11 (8 years ago)
Author:
Maciej Komosinski
Message:

Strict parsing of genotype format prefix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/geno.h

    r522 r530  
    5555
    5656public:
    57         static const int INVALID_FORMAT = '!';
     57        static const char INVALID_FORMAT = '!';
    5858        typedef SListTempl<GenoValidator*> Validators;
    5959
     
    8585
    8686        /// return string representation, with format comment at the beginning
    87         SString toString(void) const;
    88         SString shortString(void) const;
     87        SString getGeneAndFormat(void) const;
    8988
    9089        void setString(const SString& genewithcomments);
    9190
    92         /** @param newformat=-1 -> don't change */
    93         void setGene(const SString& g, char newformat = -1);
     91        /** @param genformat=-1 -> take from genstring comment (like the constructor) else specify the valid format in genformat and pure gene in genstring */
     92        void setGeneAndFormat(const SString& genstring, char genformat=-1);
     93        /** g must be pure gene, without format. for the standard behavior use setGeneAndFormat() */
     94        void setGeneOnly(const SString& g);
    9495        SString getGene(void) const;
    9596
Note: See TracChangeset for help on using the changeset viewer.