52 lines
950 B
C++
52 lines
950 B
C++
#ifndef _NNTP_LISTITEMS_HPP_
|
|
#define _NNTP_LISTITEMS_HPP_
|
|
#ifndef _NNTP_LISTITEM_HPP_
|
|
#include <nntp/listitem.hpp>
|
|
#endif
|
|
#ifndef _COMMON_BLOCK_HPP_
|
|
#include <common/block.hpp>
|
|
#endif
|
|
|
|
class ListItems : public Block<ListItem>
|
|
{
|
|
public:
|
|
ListItems(void);
|
|
ListItems(const ListItems &someListItems);
|
|
ListItems(const String &pathListFileName);
|
|
virtual ~ListItems();
|
|
ListItems &operator=(const String &pathListFileName);
|
|
ListItems &operator=(Block<String> &listItemStrings);
|
|
ListItems &operator+=(const String &listItemString);
|
|
private:
|
|
};
|
|
|
|
inline
|
|
ListItems::ListItems(void)
|
|
{
|
|
}
|
|
|
|
inline
|
|
ListItems::ListItems(const ListItems &someListItems)
|
|
{
|
|
*this=someListItems;
|
|
}
|
|
|
|
inline
|
|
ListItems::ListItems(const String &pathListFileName)
|
|
{
|
|
*this=pathListFileName;
|
|
}
|
|
|
|
inline
|
|
ListItems::~ListItems()
|
|
{
|
|
}
|
|
|
|
inline
|
|
ListItems &ListItems::operator+=(const String &listItemString)
|
|
{
|
|
ListItem listItem(listItemString);
|
|
insert(&listItem);
|
|
return *this;
|
|
}
|
|
#endif |