knowL: Knowledge Libraries
Loading...
Searching...
No Matches
knowl
src
knowCore
Format.h
1
/*
2
* Copyright (c) 2015 Cyrille Berger <cberger@cberger.net>
3
*
4
*/
5
6
#pragma once
7
8
#include <QString>
9
#include "ReturnValue.h"
10
11
class
QFileInfo;
12
class
QUrl;
13
14
namespace
knowCore
15
{
16
class
Format
17
{
18
public
:
19
static
QString Turtle;
20
static
QString JSON;
21
static
QString XML;
22
static
QString SRX;
23
static
QString CBOR;
24
static
QString CSV;
25
static
QString Auto;
26
};
27
knowCore::ReturnValue<QString>
mimeToFormat(
const
QString& _mime);
28
knowCore::ReturnValue<QString>
formatFor(
const
QByteArray& _data);
29
QString format_for(
const
QFileInfo& _fileInfo);
// TODO 3.x rename to formatFor and use ReturnValue
30
QString format_for(
const
QString& _filename);
31
QString format_for(
const
QUrl& _filename);
32
}
knowCore::Format
Definition
Format.h:17
knowCore::ReturnValue
Definition
ReturnValue.h:29
Generated by
1.12.0