/usr/include/libcmis-0.4/libcmis/property-type.hxx is in libcmis-dev 0.4.1-7.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | /* libcmis
* Version: MPL 1.1 / GPLv2+ / LGPLv2+
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License or as specified alternatively below. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* Major Contributor(s):
* Copyright (C) 2011 SUSE <cbosdonnat@suse.com>
*
*
* All Rights Reserved.
*
* For minor contributions see the git repository.
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPLv2+"), or
* the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
* in which case the provisions of the GPLv2+ or the LGPLv2+ are applicable
* instead of those above.
*/
#ifndef _PROPERTY_TYPE_HXX_
#define _PROPERTY_TYPE_HXX_
#include <boost/date_time.hpp>
#include <libxml/tree.h>
#include <string>
namespace libcmis
{
class PropertyType
{
public:
enum Type
{
String,
Integer,
Decimal,
Bool,
DateTime
};
private:
std::string m_id;
std::string m_localName;
std::string m_localNamespace;
std::string m_displayName;
std::string m_queryName;
Type m_type;
std::string m_xmlType;
bool m_multiValued;
bool m_updatable;
bool m_inherited;
bool m_required;
bool m_queryable;
bool m_orderable;
bool m_openChoice;
public:
/// Default constructor, mostly present for testing.
PropertyType( );
PropertyType( xmlNodePtr node );
PropertyType( const PropertyType& copy );
virtual ~PropertyType( ) { };
PropertyType& operator=( const PropertyType& copy );
std::string getId( ) { return m_id; }
std::string getLocalName( ) { return m_localName; }
std::string getLocalNamespace( ) { return m_localNamespace; }
std::string getDisplayName( ) { return m_displayName; }
std::string getQueryName( ) { return m_queryName; }
Type getType( ) { return m_type; }
std::string getXmlType( ) { return m_xmlType; }
bool isMultiValued( ) { return m_multiValued; }
bool isUpdatable( ) { return m_updatable; }
bool isInherited( ) { return m_inherited; }
bool isRequired( ) { return m_required; }
bool isQueryable( ) { return m_queryable; }
bool isOrderable( ) { return m_orderable; }
bool isOpenChoice( ) { return m_openChoice; }
void setId( std::string id ) { m_id = id; }
void setLocalName( std::string localName ) { m_localName = localName; }
void setLocalNamespace( std::string localNamespace ) { m_localNamespace = localNamespace; }
void setDisplayName( std::string displayName ) { m_displayName = displayName; }
void setQueryName( std::string queryName ) { m_queryName = queryName; }
void setType( Type type ) { m_type = type; }
void setMultiValued( bool multivalued ) { m_multiValued = multivalued; }
void setUpdatable( bool updatable ) { m_updatable = updatable; }
void setInherited( bool inherited ) { m_inherited = inherited; }
void setRequired( bool required ) { m_required = required; }
void setQueryable( bool queryable ) { m_queryable = queryable; }
void setOrderable( bool orderable ) { m_orderable = orderable; }
void setOpenChoice( bool openChoice ) { m_openChoice = openChoice; }
void setTypeFromXml( std::string typeStr );
void setTypeFromJsonType( std::string jsonType );
};
typedef ::boost::shared_ptr< PropertyType > PropertyTypePtr;
}
#endif
|