Find Jobs
Hire Freelancers

Class to manage URL category data structure in iOS

$100-120 USD

已取消
已发布超过 12 年前

$100-120 USD

货到付款
I need a class to manage URL classification data structures on iOS (you don't need to do the actual classification, just create the data management, the data will come from files/function calls) You can read the full spec in the detailed requirements. ## Deliverables I need a class to manage URL classification data structures on iOS (you don't need to do the actual classification, just create the data management, the data will come from files/function calls) Stage 1: Defining the categories, there will be an enum in the class with all the possible categories (I will change it later to all my categories), here is a sample list (taken from my C program): typedef enum _CategoriesEnum { ceAbortion=1, ceAds, ceAdult, //Not porn, but still not child save ceViolence, ceNude, ceAstrology, ceBanking, ceAlcoholDrugs } CategoriesEnum Stage 2: Loading data from files, the data structure is directories under the main directory, each directory has a file called domains which contains the domains for that category, when I load the file I will specify the master directory and a list of conversion between the directory name and enum. Directory structure sample: Main dir: --ads ----domains (file) --adult ----domains (file) The lookup will be: ads -> ceAds adult -> ceAdult The data in the structure is a domain name, so for example: [login to view URL], [login to view URL], [login to view URL] The data should be stored in a data container that has a fast search capabilities like a tree or map There can be more then one category for a site. Stage 3: Looking up the data, I need a function that I will provide a URL to it, the function will extract the host from the url, for example: <[login to view URL]>, the function will only search [[login to view URL]][1] The way the function will search the data is by doing searches for all possible host name, for example: [[login to view URL]][1] will also be searched for [login to view URL] if the [[login to view URL]][1] was not found. If the category is found, I will get back the enum of the category or categories. Stage 4: Adding a URL, I will be able to add a URL using a call, for example: AddURL("[login to view URL]",ceBanking) I can also specify: AddURL("[login to view URL]",ceAds) and [login to view URL] will have more then one category. Stage 5: When creating the class, I will be able to decide at creation if I want the class to have locking for thread safe, or not. The thread safety only needs to be for adding/querying the data via the API, at the stage of loading the data, there's no need for safety. Stage 6: Provide a test app that will load the data from file (data will be provided by me), and give me a two text boxes, one to query categories, I will enter a url and it will write the category, the second text box will allow me to add a url and a category.
项目 ID: 3633562

关于此项目

1条提案
远程项目
活跃13 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
1威客以均价$102 USD来参与此工作竞标
用户头像
See private message.
$102 USD 在5天之内
5.0 (5条评论)
3.6
3.6

关于客户

ISRAEL的国旗
Israel
4.9
146
付款方式已验证
会员自4月 16, 2007起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。