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

41 lines
726 B
C++
Raw Normal View History

#include "StdAfx.h"
2014-11-19 00:25:21 +08:00
#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()
{
}