mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-14 17:00:52 +08:00
41 lines
723 B
C++
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()
|
|
{
|
|
}
|