Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 29, 2011, 10:56:57 PM (14 years ago)
Author:
rgrieder
Message:

Moved a few methods from header to source.

Location:
code/branches/unity_build/src/libraries/core/command
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/unity_build/src/libraries/core/command/Shell.cc

    r8524 r8669  
    3434#include "Shell.h"
    3535
     36#include "util/Math.h"
    3637#include "util/OutputHandler.h"
    3738#include "util/StringUtils.h"
     
    4142#include "core/ConfigValueIncludes.h"
    4243#include "core/PathConfig.h"
     44#include "core/input/InputBuffer.h"
    4345#include "CommandExecutor.h"
    4446#include "ConsoleCommand.h"
     
    237239    }
    238240
     241    /// Returns the current position of the cursor in the input buffer.
     242    unsigned int Shell::getCursorPosition() const
     243    {
     244        return this->inputBuffer_->getCursorPosition();
     245    }
     246
     247    /// Returns the current content of the input buffer (the text which was entered by the user)
     248    const std::string& Shell::getInput() const
     249    {
     250        return this->inputBuffer_->get();
     251    }
     252
    239253    /**
    240254        @brief Sends output to the internal output buffer.
  • code/branches/unity_build/src/libraries/core/command/Shell.h

    r8524 r8669  
    5151#include "core/Core.h"
    5252#include "core/OrxonoxClass.h"
    53 #include "core/input/InputBuffer.h"
    5453
    5554namespace orxonox
     
    120119
    121120            void setCursorPosition(unsigned int cursor);
    122             /// Returns the current position of the cursor in the input buffer.
    123             inline unsigned int getCursorPosition() const
    124                 { return this->inputBuffer_->getCursorPosition(); }
    125 
    126             /// Returns the current content of the input buffer (the text which was entered by the user)
    127             inline const std::string& getInput() const
    128                 { return this->inputBuffer_->get(); }
     121            unsigned int getCursorPosition() const;
     122
     123            const std::string& getInput() const;
    129124
    130125            typedef std::list<std::pair<std::string, LineType> > LineList;
Note: See TracChangeset for help on using the changeset viewer.