#ifndef __DB_OBJECT_MASTER_FILTER_BE_WRAPPER_H__
#define __DB_OBJECT_MASTER_FILTER_BE_WRAPPER_H__

#include "grtdb/db_object_master_filter.h"
#include "DBObjectFilterBE.h"

#ifdef _MSC_VER
using namespace System;
using namespace System::Collections::Generic;
using namespace System::Runtime::InteropServices;
#endif

#pragma make_public(::bec::DBObjectMasterFilterBE)

namespace MySQL {
namespace Grt {
namespace Db {

ref class DBObjectMasterFilterBE;

public ref class DBObjectMasterFilterBE
{
protected:
  ::bec::DBObjectMasterFilterBE *inner;

  DBObjectMasterFilterBE(::bec::DBObjectMasterFilterBE *inn) 
    : inner(inn)
  {}  

public:
  DBObjectMasterFilterBE(MySQL::Grt::GrtManager^ grtm);

  ~DBObjectMasterFilterBE()
  { delete inner; }

  ::bec::DBObjectMasterFilterBE *get_unmanaged_object()
  { return static_cast<::bec::DBObjectMasterFilterBE *>(inner); }

  void add_filter(DBObjectFilterBE^ filter);
  void remove_all_filters();

  void add_stored_filter_set(String^ name, List<String ^> ^stored_filter_set_names);
  void remove_stored_filter_set(int index);
  void load_stored_filter_set(int index, List<int> ^%indexes);
  void load_stored_filter_set_list(List<String^> ^%names);
};

} // namespace Db
} // namespace Grt
} // namespace MySQL

#endif /* __DB_OBJECT_MASTER_FILTER_BE_WRAPPER_H__ */