acl/lib_acl_cpp/app/ndb/ctl_server/db_host.cpp

41 lines
723 B
C++

#include "StdAfx.h"
#include "db_host.h"
db_host::db_host(unsigned int id, const char* addr,
long long int count)
: id_(id)
, count_(count)
{
addr_ = acl_mystrdup(addr);
}
db_host::~db_host(void)
{
acl_myfree(addr_);
}
//////////////////////////////////////////////////////////////////////////
idx_host::idx_host(unsigned int id, const char* addr,
long long int count)
: db_host(id, addr, count)
{
}
idx_host::~idx_host()
{
}
//////////////////////////////////////////////////////////////////////////
dat_host::dat_host(unsigned int id, const char* addr,
long long int count, int priority)
: db_host(id, addr, count)
{
priority_ = priority;
}
dat_host::~dat_host()
{
}