COAR  1.0
COAR - DMS system
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
query.h File Reference
#include <stdio.h>
#include <wchar.h>
#include <stdbool.h>
#include <stdlib.h>
#include "contentlist.h"
#include <map>
#include <vector>
#include "querystr.h"

Go to the source code of this file.

Classes

struct  corrmap_cmp
class  query

Macros

#define COL_DOCUUID   "docuuid"
#define COL_USERDOCID   "userdocid"
#define COL_USERTIME   "usertime"
#define COL_VUDCOMMENT   "vudcomment"
#define COL_VERSIONID   "vudversionid"
#define COL_DESCRIPTION   "description"
#define COL_SCORE   "score()"
#define COL_NAME   "name"
#define COL_ID   "id"
#define COL_OWNERNAME   "ownername"
#define COL_CREATIONTIME   "creationtime"
#define COL_UPDATETIME   "updatetime"
#define COL_ALL   "*"
#define COL_TAG   "tag"
#define COL_ALLTAGS   "tags"
#define COL_MDPREFIX   "md::"
#define COL_ALLMD   "metadata"
#define TAB_FOLDER   "folder"
#define TAB_DOCUMENT   "document"

Typedefs

typedef std::map< char *, char
*, corrmap_cmp
correlationmap_t

Enumerations

enum  col_type { select_column, pred_column, orderby_column }

Macro Definition Documentation

#define COL_ALL   "*"

for selection of all columns

#define COL_ALLMD   "metadata"

column reserved for selecting all metadata

#define COL_ALLTAGS   "tags"

column reserved for selecting all tags

#define COL_CREATIONTIME   "creationtime"
#define COL_DESCRIPTION   "description"
#define COL_DOCUUID   "docuuid"

column names - doc specific

#define COL_ID   "id"
#define COL_MDPREFIX   "md::"

md prefix in conditions

#define COL_NAME   "name"

column names - fld & doc

#define COL_OWNERNAME   "ownername"
#define COL_SCORE   "score()"
#define COL_TAG   "tag"

column reserved for tag in conditions

#define COL_UPDATETIME   "updatetime"
#define COL_USERDOCID   "userdocid"
#define COL_USERTIME   "usertime"
#define COL_VERSIONID   "vudversionid"
#define COL_VUDCOMMENT   "vudcomment"
#define TAB_DOCUMENT   "document"
#define TAB_FOLDER   "folder"

table names


Typedef Documentation

typedef std::map<char*,char*,corrmap_cmp> correlationmap_t

Enumeration Type Documentation

enum col_type
Enumerator:
select_column 
pred_column 
orderby_column