1 Star 0 Fork 121

blog/kbengine

forked from likecg/kbengine 
Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
property.ipp 2.25 KB
Copy Edit Raw Blame History
/*
This source file is part of KBEngine
For the latest info, see http://www.kbengine.org/
Copyright (c) 2008-2012 KBEngine.
KBEngine is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
KBEngine is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with KBEngine. If not, see <http://www.gnu.org/licenses/>.
*/
namespace KBEngine {
INLINE int8 PropertyDescription::getDetailLevel(void)const
{
return detailLevel_;
}
INLINE bool PropertyDescription::isPersistent(void)const
{
return isPersistent_;
};
INLINE DataType* PropertyDescription::getDataType(void)const
{
return dataType_;
};
INLINE const uint32& PropertyDescription::getFlags(void)const
{
return flags_;
};
INLINE const char* PropertyDescription::getName(void)const
{
return name_.c_str();
};
INLINE const char* PropertyDescription::getDataTypeName(void)const
{
return dataTypeName_.c_str();
}
INLINE const char* PropertyDescription::getDefaultValStr(void)const
{
return defaultValStr_.c_str();
}
INLINE ENTITY_PROPERTY_UID PropertyDescription::getUType(void)const
{
return utype_;
}
INLINE void PropertyDescription::setIdentifier(bool isIdentifier)
{
isIdentifier_ = isIdentifier;
}
INLINE void PropertyDescription::setDatabaseLength(uint32 databaseLength)
{
databaseLength_ = databaseLength;
}
INLINE uint32 PropertyDescription::getDatabaseLength()const
{
return databaseLength_;
}
INLINE int16 PropertyDescription::aliasID()const
{
return aliasID_;
}
INLINE void PropertyDescription::aliasID(int16 v)
{
aliasID_ = v;
}
INLINE bool PropertyDescription::hasCell(void)const
{
return (flags_ & ENTITY_CELL_DATA_FLAGS) > 0;
}
INLINE bool PropertyDescription::hasBase(void)const
{
return (flags_ & ENTITY_BASE_DATA_FLAGS) > 0;
}
INLINE bool PropertyDescription::hasClient(void)const
{
return (flags_ & ENTITY_CLIENT_DATA_FLAGS) > 0;
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/blog/kbengine.git
git@gitee.com:blog/kbengine.git
blog
kbengine
kbengine
080fd4f0b1fec20233c38a3600f8da3c26542444

Search