bool User::Load(string identifier){ string jsonUser = RocksdbHandler::Get("user_" + identifier, PATH_DB_USERS); set<string> ignoredAttributes; return SetAllAttributes(jsonUser, ignoredAttributes); }
bool CPhotoManager::Activate(IHTMLDocument2Ptr spDoc, bool bOn, CString& strHost) { m_strHost = strHost; // spDoc could be NULL if the document is being closed if (spDoc == NULL && bOn) return false; if ((spDoc != NULL) && !IsDocInEditMode(spDoc)) return false; if (bOn) { GetElements(spDoc); SetAllAttributes(true); } else { SetAllAttributes(false); m_ElementList.clear(); } return true; }