Renamed member variables and parameters.
This commit is contained in:
@@ -15,23 +15,23 @@ namespace ehs
|
||||
}
|
||||
|
||||
NetSys::NetSys()
|
||||
: hashId(0)
|
||||
: id(0)
|
||||
{
|
||||
}
|
||||
|
||||
NetSys::NetSys(Str_8 id)
|
||||
: hashId(id.Hash_64()), id((Str_8&&)id)
|
||||
NetSys::NetSys(Str_8 name)
|
||||
: id(name.Hash_64()), name((Str_8&&)name)
|
||||
{
|
||||
}
|
||||
|
||||
NetSys::NetSys(NetSys&& sys) noexcept
|
||||
: hashId(sys.hashId), id((Str_8&&)sys.id), ops((Array<NetOp*>&&)sys.ops)
|
||||
: id(sys.id), name((Str_8&&)sys.name), ops((Array<NetOp*>&&)sys.ops)
|
||||
{
|
||||
sys.hashId = 0;
|
||||
sys.id = 0;
|
||||
}
|
||||
|
||||
NetSys::NetSys(const NetSys& sys)
|
||||
: hashId(sys.hashId), id(sys.id)
|
||||
: id(sys.id), name(sys.name)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -40,11 +40,11 @@ namespace ehs
|
||||
if (this == &sys)
|
||||
return *this;
|
||||
|
||||
hashId = sys.hashId;
|
||||
id = (Str_8&&)sys.id;
|
||||
id = sys.id;
|
||||
name = (Str_8&&)sys.name;
|
||||
ops = (Array<NetOp*>&&)sys.ops;
|
||||
|
||||
sys.hashId = 0;
|
||||
sys.id = 0;
|
||||
|
||||
return *this;
|
||||
}
|
||||
@@ -54,27 +54,27 @@ namespace ehs
|
||||
if (this == &sys)
|
||||
return *this;
|
||||
|
||||
hashId = sys.hashId;
|
||||
id = sys.id;
|
||||
name = sys.name;
|
||||
ops = Array<NetOp*>();
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
Str_8 NetSys::GetId() const
|
||||
UInt_64 NetSys::GetId() const
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
UInt_64 NetSys::GetHashId() const
|
||||
Str_8 NetSys::GetName() const
|
||||
{
|
||||
return hashId;
|
||||
return name;
|
||||
}
|
||||
|
||||
bool NetSys::HasOperation(const UInt_64 hashId) const
|
||||
bool NetSys::HasOperation(const UInt_64 id) const
|
||||
{
|
||||
for (UInt_64 i = 0; i < ops.Size(); ++i)
|
||||
if (ops[i]->GetHashId() == hashId)
|
||||
if (ops[i]->GetId() == id)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
@@ -82,7 +82,7 @@ namespace ehs
|
||||
|
||||
bool NetSys::AddOperation(NetOp* op)
|
||||
{
|
||||
if (HasOperation(op->GetHashId()))
|
||||
if (HasOperation(op->GetId()))
|
||||
return false;
|
||||
|
||||
ops.Push(op);
|
||||
@@ -94,7 +94,7 @@ namespace ehs
|
||||
{
|
||||
for (UInt_64 i = 0; i < ops.Size(); ++i)
|
||||
{
|
||||
if (ops[i]->GetHashId() == hashId)
|
||||
if (ops[i]->GetId() == hashId)
|
||||
{
|
||||
ops[i]->Execute(channel, endpoint, this, payload);
|
||||
return;
|
||||
|
Reference in New Issue
Block a user