Subversion Repositories spk

Rev

Rev 98 | Rev 112 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#pragma once

#include "String.h"
#include "../lists.h"

namespace Utils {

        typedef struct {
                String str;
                String data;
        } SStringList;

        typedef CListNode<SStringList> CStringListNode;

        class SPKEXPORT CStringList : public CLinkList<SStringList>
        {
        public:
                void pushBack(const String &str, const String &data);
                void clear();
                void tokenise(const String &str, const String &token);

                Utils::String firstString();
                Utils::String nextString();

                Utils::String findData(const Utils::String &data, bool bIgnoreCase = false) const;
                Utils::String findString(const Utils::String &str, bool bIgnoreCase = false) const;
        };
} //NAMESPACE