Ignore:
Timestamp:
Dec 8, 2007, 8:08:33 AM (14 years ago)
Author:
Peter Johansson
Message:

default parse codons in Configuration and implemented writing of variable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Configuration.h

    r446 r508  
    3131#include <string>
    3232#include <utility>
     33#include <vector>
    3334
    3435namespace theplu{
     
    6667    bool  missing_copyright_warning(void) const;
    6768
     69    /**
     70       \return vector of parse codons for the given \a file_name
     71     */
     72    const std::vector<std::pair<std::string, std::string> >&
     73    parse_codon(std::string file_name) const;
     74
    6875    ///
    6976    /// @return root for the trac envrionment, e.g.,
     
    8491    Configuration& operator=(const Configuration&);
    8592
     93    friend std::ostream& operator<<(std::ostream&, const Configuration&);
     94
     95    void add_codon(std::string, std::string, std::string);
     96
    8697    void clear(void);
    8798
    8899    bool equal_false(const std::string&) const;
    89100    bool equal_true(const std::string&) const;
    90 
     101    std::string trans_end_code(std::string) const;
     102    std::string trans_beg_code(std::string) const;
    91103    void set_default(void);
    92 
     104   
    93105    static Configuration* instance_;
    94106
     
    96108
    97109    bool missing_copyright_warning_;
     110   
     111    typedef std::vector<std::pair<std::string, std::string> > codons;
     112    typedef std::vector<std::pair<std::string, codons> > String2Codons;
     113    String2Codons string2codons_;
     114
    98115    std::string trac_root_;
    99116  };
Note: See TracChangeset for help on using the changeset viewer.