vfs: check userland buffers before reading them.
[haiku.git] / src / tests / add-ons / print / ppd / model / StatementList.h
blob108a67cb5f5f78b87c3bb838c950c681ffdd4b14
1 /*
2 * Copyright 2008, Haiku.
3 * Distributed under the terms of the MIT license.
5 * Authors:
6 * Michael Pfeiffer <laplace@users.sourceforge.net>
7 */
9 #ifndef _STATEMENT_LIST_H
10 #define _STATEMENT_LIST_H
12 #include <List.h>
14 class Statement;
16 class StatementList {
17 private:
18 BList fList;
19 bool fOwnsStatements;
21 public:
22 StatementList(bool ownsStatements);
23 ~StatementList();
25 void Add(Statement* statement);
26 void Remove(Statement* statement);
27 int32 Size();
28 Statement* StatementAt(int32 index);
30 Statement* GetStatement(const char* keyword);
31 const char* GetValue(const char* keyword);
33 void Print();
36 #endif