Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 20, 2018, 12:09:09 AM (6 years ago)
Author:
landauf
Message:

tabs → spaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Presentation_HS17_merge/src/modules/dialog/Question.cc

    r11781 r11782  
    3333{
    3434
    35         RegisterClass(Question);
     35    RegisterClass(Question);
    3636
    37         Question::Question(Context* context) : BaseObject(context)
    38         {
    39                 RegisterObject(Question);
    40         }
     37    Question::Question(Context* context) : BaseObject(context)
     38    {
     39        RegisterObject(Question);
     40    }
    4141
    42         void Question::XMLPort(Element& xmlement, XMLPort::Mode mode)
    43         {
    44                 SUPER(Question, XMLPort, xmlement, mode);
     42    void Question::XMLPort(Element& xmlement, XMLPort::Mode mode)
     43    {
     44        SUPER(Question, XMLPort, xmlement, mode);
    4545
    46                 XMLPortParam(Question, "question", setQuestion, getQuestion, xmlement, mode);
    47                 XMLPortParam(Question, "Id", setQuestionId, getQuestionId, xmlement, mode);
     46        XMLPortParam(Question, "question", setQuestion, getQuestion, xmlement, mode);
     47        XMLPortParam(Question, "Id", setQuestionId, getQuestionId, xmlement, mode);
    4848
    49                 XMLPortObject(Question, AnswerId, "answerIds", addAnswerId, getAnswerId, xmlement, mode);
    50         }
     49        XMLPortObject(Question, AnswerId, "answerIds", addAnswerId, getAnswerId, xmlement, mode);
     50    }
    5151
    52         void Question::setQuestionId(const std::string& Id)
    53         {
    54                 this->questionId_ = Id;
    55         }
     52    void Question::setQuestionId(const std::string& Id)
     53    {
     54        this->questionId_ = Id;
     55    }
    5656
    57         const std::string& Question::getQuestionId() const
    58         {
    59                 return this->questionId_;
    60         }
     57    const std::string& Question::getQuestionId() const
     58    {
     59        return this->questionId_;
     60    }
    6161
    62         void Question::setQuestion(const std::string& question)
    63         {
    64                 this->question_ = question;
    65         }
     62    void Question::setQuestion(const std::string& question)
     63    {
     64        this->question_ = question;
     65    }
    6666
    67         const std::string& Question::getQuestion() const
    68         {
    69                 return this->question_;
    70         }
     67    const std::string& Question::getQuestion() const
     68    {
     69        return this->question_;
     70    }
    7171
    72         void Question::addAnswerId(AnswerId* answerId)
    73         {
    74                 this->answerIds_.push_back(answerId->getId());
    75         }
     72    void Question::addAnswerId(AnswerId* answerId)
     73    {
     74        this->answerIds_.push_back(answerId->getId());
     75    }
    7676
    77         AnswerId* Question::getAnswerId(unsigned int index) const
    78         {
    79                 return nullptr;
    80         }
     77    AnswerId* Question::getAnswerId(unsigned int index) const
     78    {
     79        return nullptr;
     80    }
    8181
    82         const std::vector<std::string>& Question::getAnswerIds() const
    83         {
    84                 return this->answerIds_;
    85         }
    86        
     82    const std::vector<std::string>& Question::getAnswerIds() const
     83    {
     84        return this->answerIds_;
     85    }
    8786}
Note: See TracChangeset for help on using the changeset viewer.