Changeset 271 in pacpusframework for trunk/src/PacpusLib


Ignore:
Timestamp:
Mar 13, 2014, 10:41:35 AM (11 years ago)
Author:
Marek Kurdej
Message:

Fixed: allow_unregistered.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/PacpusLib/ComponentBase.cpp

    r270 r271  
    324324        : m_dom_element(&dom_element)
    325325        , m_allowed_options(allowed_options)
    326         , m_allow_unregistered(false)
     326        , m_allow_unregistered(allow_unregistered)
    327327        , m_i(0)
    328328    {
     
    334334    }
    335335   
    336 //private:
    337     friend class iterator_core_access;
     336private:
     337    friend class ::boost::iterator_core_access;
    338338
    339339    bool equal(const basic_dom_element_iterator<charT>& other) const
     
    429429        bool allow_unregistered)
    430430{
     431    // TODO: use XPath paths
     432
    431433    typedef char charT;
    432434
     
    481483    LOG_INFO(mOptionsDescription);
    482484   
    483     vector<string> xargs = convertAttributesToArgumentVector(cfg.getProperties());
    484    
    485485    po::variables_map vm;
    486486    try {
    487487        po::store(
    488488            DomElementParser(cfg.getDomElement())
    489             //po::command_line_parser(xargs)
    490489                .options(mOptionsDescription)
    491490                .allow_unregistered()   // FIXME: temporary only, at term all the components specify all parameters
Note: See TracChangeset for help on using the changeset viewer.