#include "btree.h"
-BTree::BTree (const char *name, unsigned int block_size, bool create_new_file)
+BTree::BTree (const std::string &name, unsigned int block_size, bool create_new_file)
{
uchar *node;
BTreeNodeHeader nh;
- fp = fopen (name, "wb");
+ fp = fopen (name.c_str(), "wb");
if (!fp) {
/* TODO : mandar una exception ? */
return;
*/
class BTree {
public:
- BTree (const char *filename, unsigned int block_size, bool create_new_file = false);
+ BTree (const std::string &filename, unsigned int block_size, bool create_new_file = false);
~BTree ();
void AddKey (Clave &k);