Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7220 in orxonox.OLD for branches/std/src/util


Ignore:
Timestamp:
Mar 12, 2006, 6:38:41 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: more strings

Location:
branches/std/src/util/track
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/std/src/util/track/track_manager.cc

    r7211 r7220  
    123123 * @returns The TrackElement if Found, NULL otherwise.
    124124*/
    125 TrackElement* TrackElement::findByName(const char* trackName)
     125TrackElement* TrackElement::findByName(const std::string& trackName)
    126126{
    127127  // return if Found.
     
    532532 * @param trackName the Name of the Track to work on
    533533*/
    534 void TrackManager::workOnS(const char* trackName)
     534void TrackManager::workOnS(const std::string& trackName)
    535535{
    536536  TrackElement* tmpElem = this->firstTrackElem->findByName(trackName);
     
    657657   @todo this must be better
    658658*/
    659 void TrackManager::setSavePointS(const char* nextElementName)
     659void TrackManager::setSavePointS(const std::string& nextElementName)
    660660{
    661661  this->setSavePoint(NULL);
     
    725725  for(int i = 0; i < count; i++)
    726726    {
    727       this->firstTrackElem->findByID(trackIDs[i])->setName(va_arg(name, const char*));
     727      this->firstTrackElem->findByID(trackIDs[i])->setName(va_arg(name, const std::string&));
    728728    }
    729729  va_end(name);
     
    734734   \see TrackManager::fork(unsigned int count, ...)
    735735*/
    736 void TrackManager::forkS(const char* forkString)
     736void TrackManager::forkS(const std::string& forkString)
    737737{
    738738  SubString strings(forkString, ',');
     
    860860  for(int i = 0; i < count; i++)
    861861    {
    862       const char* name = va_arg (NAME, char*);
     862      const std::string& name = va_arg (NAME, char*);
    863863      TrackElement* tmpElem = this->firstTrackElem->findByName(name);
    864864      if (tmpElem)
     
    875875   \see void TrackManager::join(unsigned int count, ...)
    876876*/
    877 void TrackManager::joinS(const char* joinString)
     877void TrackManager::joinS(const std::string& joinString)
    878878{
    879879  SubString strings(joinString, ',');
  • branches/std/src/util/track/track_manager.h

    r7216 r7220  
    4646
    4747  TrackElement* findByID(unsigned int trackID);
    48   TrackElement* findByName(const char* trackName);
     48  TrackElement* findByName(const std::string& trackName);
    4949  bool backLoopCheck() const;
    5050
     
    153153  void addHotPoint(float x, float y, float z);
    154154  int addHotPointV(Vector newPoint, TrackElement* trackElem = NULL);
    155   void setSavePointS(const char* nextElementName);
     155  void setSavePointS(const std::string& nextElementName);
    156156  void setSavePoint(TrackElement* trackElem = NULL);
    157157  void fork(unsigned int count, ...);
     
    162162  void condition(CONDITION cond, void* subject, TrackElement* trackElem = NULL);
    163163  void join(unsigned int count, ...);
    164   void joinS(const char* joinString);
     164  void joinS(const std::string& joinString);
    165165  void joinS(unsigned int cound, ...);
    166166  void joinV(unsigned int count, int* trackIDs);
Note: See TracChangeset for help on using the changeset viewer.