33 lines
815 B
C++
33 lines
815 B
C++
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (C) Intel Corporation, 2007 - 2008.
|
|
//
|
|
// File: ListParser.h
|
|
//
|
|
// Contents: Parses a list of items (seperated by new lines).
|
|
//
|
|
// Notes:
|
|
//----------------------------------------------------------------------------
|
|
#ifndef LIST_PARSER_H
|
|
#define LIST_PARSER_H
|
|
|
|
#include "Parser.h"
|
|
#include <ace/SString.h>
|
|
#include <vector>
|
|
|
|
class List_Parser : public Parser
|
|
{
|
|
public:
|
|
|
|
List_Parser() : Parser() {}
|
|
virtual ~List_Parser() {}
|
|
|
|
/*
|
|
* Parses a text file and puts its lines inside a vector.
|
|
* filename - the name of the file to parse
|
|
* vec - the vector to put the lines in.
|
|
*/
|
|
virtual int parseItemList(const ACE_TCHAR * fileName, std::vector<ACE_TString> &vec);
|
|
};
|
|
|
|
#endif /* LIST_PARSER_H */ |