/*
* Copyright 2018-2021 ANSYS, Inc. Unauthorized use, distribution, or duplication is prohibited.
*
* Restricted Rights Legend
*
* Use, duplication, or disclosure of this
* software and its documentation by the
* Government is subject to restrictions as
* set forth in subdivision [(b)(3)(ii)] of
* the Rights in Technical Data and Computer
* Software clause at 52.227-7013.
*/
#ifndef __INCLUDED_GLTF_GLTFVALUE__
#define __INCLUDED_GLTF_GLTFVALUE__
#include "GLTFCommon.h"
#include "GLTFObject.h"
namespace ANSYS { namespace AVZ { namespace GLTFWriter {
class GLTF;
class Value : public Object
{
protected:
virtual ~Value() {};
public:
static GLTFWRITERSPEC Value *Create(GLTF *gltf,
const char *name,
const Value *value = 0
);
static GLTFWRITERSPEC Value *Create(GLTF *gltf,
const char *name,
unsigned int count,
const char **v
);
static GLTFWRITERSPEC Value *Create(GLTF *gltf,
const char *name,
unsigned int count,
const bool *v
);
static GLTFWRITERSPEC Value *Create(GLTF *gltf,
const char *name,
unsigned int count,
const char *v
);
static GLTFWRITERSPEC Value *Create(GLTF *gltf,
const char *name,
unsigned int count,
const short *v
);
static GLTFWRITERSPEC Value *Create(GLTF *gltf,
const char *name,
unsigned int count,
const unsigned short *v
);
static GLTFWRITERSPEC Value *Create(GLTF *gltf,
const char *name,
unsigned int count,
const int *v
);
static GLTFWRITERSPEC Value *Create(GLTF *gltf,
const char *name,
unsigned int count,
const unsigned int *v
);
static GLTFWRITERSPEC Value *Create(GLTF *gltf,
const char *name,
unsigned int count,
const float *v
);
static GLTFWRITERSPEC Value *Create(GLTF *gltf,
const char *name,
unsigned int count,
const double *v
);
static GLTFWRITERSPEC Value *Create(GLTF *gltf,
const char *name,
const char *v1,
const char *v2 = 0,
const char *v3 = 0,
const char *v4 = 0
);
static GLTFWRITERSPEC Value *Create(GLTF *gltf,
const char *name,
double v1
);
static GLTFWRITERSPEC Value *Create(GLTF *gltf,
const char *name,
double v1,
double v2
);
static GLTFWRITERSPEC Value *Create(GLTF *gltf,
const char *name,
double v1,
double v2,
double v3
);
static GLTFWRITERSPEC Value *Create(GLTF *gltf,
const char *name,
double v1,
double v2,
double v3,
double v4
);
GLTFWRITERSPEC virtual bool Set(unsigned int count,
const char **v
) = 0;
GLTFWRITERSPEC virtual bool Set(unsigned int count,
const bool *v
) = 0;
GLTFWRITERSPEC virtual bool Set(unsigned int count,
const char *v
) = 0;
GLTFWRITERSPEC virtual bool Set(unsigned int count,
const short *v
) = 0;
GLTFWRITERSPEC virtual bool Set(unsigned int count,
const unsigned short *v
) = 0;
GLTFWRITERSPEC virtual bool Set(unsigned int count,
const int *v
) = 0;
GLTFWRITERSPEC virtual bool Set(unsigned int count,
const unsigned int *v
) = 0;
GLTFWRITERSPEC virtual bool Set(unsigned int count,
const float *v
) = 0;
GLTFWRITERSPEC virtual bool Set(unsigned int count,
const double *v
) = 0;
GLTFWRITERSPEC virtual bool Set(const char *v1,
const char *v2 = 0,
const char *v3 = 0,
const char *v4 = 0
) = 0;
GLTFWRITERSPEC virtual bool Set(double v1
) = 0;
GLTFWRITERSPEC virtual bool Set(double v1,
double v2
) = 0;
GLTFWRITERSPEC virtual bool Set(double v1,
double v2,
double v3
) = 0;
GLTFWRITERSPEC virtual bool Set(double v1,
double v2,
double v3,
double v4
) = 0;
GLTFWRITERSPEC virtual bool Append(const char *value
) = 0;
GLTFWRITERSPEC virtual bool Append(double value
) = 0;
GLTFWRITERSPEC virtual unsigned int Size() const = 0;
GLTFWRITERSPEC virtual const char *elemS(unsigned int pos
) const = 0;
GLTFWRITERSPEC virtual double elemD(unsigned int pos
) const = 0;
};
} } }
#endif