Commit 2d24a7eb authored by jan.koester's avatar jan.koester
Browse files

fxied

parent 190e9b99
Loading
Loading
Loading
Loading
−58.5 KiB

File deleted.

+0 −74
Original line number Diff line number Diff line
/*******************************************************************************
 * Copyright (c) 2025, Jan Koester jan.koester@gmx.net
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 * Redistributions of source code must retain the above copyright
 *      notice, this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 *      notice, this list of conditions and the following disclaimer in the
 *      documentation and/or other materials provided with the distribution.
 * Neither the name of the <organization> nor the
 *      names of its contributors may be used to endorse or promote products
 *      derived from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *******************************************************************************/

#include <string>
#include <stdint.h>

#pragma once

#ifndef uuid_t
typedef unsigned char uuid_t[16];
#endif

namespace uuid{
   class uuid {
   public:
      uuid();
      uuid(const uuid &src);
      uuid(const uuid_t &src);
      uuid(const char *src);
      uuid(const std::string &src);

      ~uuid();

      void generate();
      const char *c_str() const;

      bool empty() const;

      int parse(const char* src);
      int parse(const std::string &src);

      void clear();

      char at(size_t pos);

      void insert(size_t pos,char src);

      uuid& operator=(const uuid_t &src);
      uuid& operator=(const uuid& rval);

      bool operator==(const uuid_t &src) const;
      bool operator==(const uuid &src) const;
      bool operator!=(const uuid &src) const;
      uuid_t value;

   private:
       char *cstr;
   };
};
+0 −43
Original line number Diff line number Diff line

#ifndef UUIDP_EXPORT_H
#define UUIDP_EXPORT_H

#ifdef UUIDP_STATIC_DEFINE
#  define UUIDP_EXPORT
#  define UUIDP_NO_EXPORT
#else
#  ifndef UUIDP_EXPORT
#    ifdef uuidp_EXPORTS
        /* We are building this library */
#      define UUIDP_EXPORT __declspec(dllexport)
#    else
        /* We are using this library */
#      define UUIDP_EXPORT __declspec(dllimport)
#    endif
#  endif

#  ifndef UUIDP_NO_EXPORT
#    define UUIDP_NO_EXPORT 
#  endif
#endif

#ifndef UUIDP_DEPRECATED
#  define UUIDP_DEPRECATED __declspec(deprecated)
#endif

#ifndef UUIDP_DEPRECATED_EXPORT
#  define UUIDP_DEPRECATED_EXPORT UUIDP_EXPORT UUIDP_DEPRECATED
#endif

#ifndef UUIDP_DEPRECATED_NO_EXPORT
#  define UUIDP_DEPRECATED_NO_EXPORT UUIDP_NO_EXPORT UUIDP_DEPRECATED
#endif

/* NOLINTNEXTLINE(readability-avoid-unconditional-preprocessor-if) */
#if 0 /* DEFINE_NO_DEPRECATED */
#  ifndef UUIDP_NO_DEPRECATED
#    define UUIDP_NO_DEPRECATED
#  endif
#endif

#endif /* UUIDP_EXPORT_H */
+0 −8
Original line number Diff line number Diff line
include(CMakeFindDependencyMacro)
# find_dependency(xx 2.0)
include(${CMAKE_CURRENT_LIST_DIR}/libuuidpTargets.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/libuuidpConfigVersion.cmake)

set(UUIDP_INCLUDE_DIR   "${CMAKE_INSTALL_PREFIX}/include")
set(UUIDP_CONFIG_DIR    "${CMAKE_CURRENT_LIST_DIR}" )
+0 −43
Original line number Diff line number Diff line
# This is a basic version file for the Config-mode of find_package().
# It is used by write_basic_package_version_file() as input file for configure_file()
# to create a version-file which can be installed along a config.cmake file.
#
# The created file sets PACKAGE_VERSION_EXACT if the current version string and
# the requested version string are exactly the same and it sets
# PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version.
# The variable CVF_VERSION must be set before calling configure_file().

set(PACKAGE_VERSION "1.0.0")

if (PACKAGE_FIND_VERSION_RANGE)
  # Package version must be in the requested version range
  if ((PACKAGE_FIND_VERSION_RANGE_MIN STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION_MIN)
      OR ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_GREATER PACKAGE_FIND_VERSION_MAX)
        OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND PACKAGE_VERSION VERSION_GREATER_EQUAL PACKAGE_FIND_VERSION_MAX)))
    set(PACKAGE_VERSION_COMPATIBLE FALSE)
  else()
    set(PACKAGE_VERSION_COMPATIBLE TRUE)
  endif()
else()
  if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
    set(PACKAGE_VERSION_COMPATIBLE FALSE)
  else()
    set(PACKAGE_VERSION_COMPATIBLE TRUE)
    if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION)
      set(PACKAGE_VERSION_EXACT TRUE)
    endif()
  endif()
endif()


# if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it:
if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "8" STREQUAL "")
  return()
endif()

# check that the installed version has the same 32/64bit-ness as the one which is currently searching:
if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "8")
  math(EXPR installedBits "8 * 8")
  set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)")
  set(PACKAGE_VERSION_UNSUITABLE TRUE)
endif()
Loading