1 /* 2 * Copyright 2008, Haiku. 3 * Distributed under the terms of the MIT license. 4 * 5 * Authors: 6 * Michael Pfeiffer <laplace@users.sourceforge.net> 7 */ 8 9 #ifndef _STATEMENT_LIST_H 10 #define _STATEMENT_LIST_H 11 12 #include <List.h> 13 14 class Statement; 15 16 class StatementList { 17 private: 18 BList fList; 19 bool fOwnsStatements; 20 21 public: 22 StatementList(bool ownsStatements); 23 ~StatementList(); 24 25 void Add(Statement* statement); 26 void Remove(Statement* statement); 27 int32 Size(); 28 Statement* StatementAt(int32 index); 29 30 Statement* GetStatement(const char* keyword); 31 const char* GetValue(const char* keyword); 32 33 void Print(); 34 }; 35 36 #endif 37