Lines Matching refs:name
54 int UserInfo::SetUserId(const std::string& name, const std::string& value)
59 if (AppEventStore::GetInstance().QueryUserId(name, out) == DB_FAILED) {
64 if (AppEventStore::GetInstance().InsertUserId(name, value) == DB_FAILED) {
69 if (AppEventStore::GetInstance().UpdateUserId(name, value) == DB_FAILED) {
75 userIds_[name] = value;
81 int UserInfo::GetUserId(const std::string& name, std::string& out)
86 if (userIds_.find(name) == userIds_.end()) {
90 out = userIds_.at(name);
95 int UserInfo::RemoveUserId(const std::string& name)
99 if (AppEventStore::GetInstance().DeleteUserId(name) == DB_FAILED) {
104 if (userIds_.find(name) != userIds_.end()) {
105 userIds_.erase(name);
112 int UserInfo::SetUserProperty(const std::string& name, const std::string& value)
117 if (AppEventStore::GetInstance().QueryUserProperty(name, out) == DB_FAILED) {
122 if (AppEventStore::GetInstance().InsertUserProperty(name, value) == DB_FAILED) {
127 if (AppEventStore::GetInstance().UpdateUserProperty(name, value) == DB_FAILED) {
133 userProperties_[name] = value;
139 int UserInfo::GetUserProperty(const std::string& name, std::string& out)
144 if (userProperties_.find(name) == userProperties_.end()) {
148 out = userProperties_.at(name);
153 int UserInfo::RemoveUserProperty(const std::string& name)
157 if (AppEventStore::GetInstance().DeleteUserProperty(name) == DB_FAILED) {
162 if (userProperties_.find(name) != userProperties_.end()) {
163 userProperties_.erase(name);
194 userId.name = it->first;
207 userProperty.name = it->first;