SimOne C++ API Reference 3.7.0
SimOne 仿真平台C++接口文档
Loading...
Searching...
No Matches
SimString.h
Go to the documentation of this file.
1// ==========================================================================
2// Copyright (C) 2018 - 2021 Beijing 51WORLD Digital Twin Technology Co., Ltd.
3// , and/or its licensors. All rights reserved.
4//
5// The coded instructions, statements, computer programs, and/or related
6// material (collectively the "Data") in these files contain unpublished
7// information proprietary to Beijing 51WORLD Digital Twin Technology Co., Ltd.
8// ("51WORLD") and/or its licensors, which is protected by the People's
9// Republic of China and/or other countries copyright law and by
10// international treaties.
11//
12// The Data may not be disclosed or distributed to third parties or be
13// copied or duplicated, in whole or in part, without the prior written
14// consent of 51WORLD.
15//
16// The copyright notices in the Software and this entire statement,
17// including the above license grant, this restriction and the following
18// disclaimer, must be included in all copies of the Software, in whole
19// or in part, and all derivative works of the Software, unless such copies
20// or derivative works are solely in the form of machine-executable object
21// code generated by a source language processor.
22
23// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
24// 51WORLD DOES NOT MAKE AND HEREBY DISCLAIMS ANY EXPRESS OR IMPLIED
25// WARRANTIES INCLUDING, BUT NOT LIMITED TO, THE WARRANTIES OF
26// NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE,
27// OR ARISING FROM A COURSE OF DEALING, USAGE, OR TRADE PRACTICE. IN NO
28// EVENT WILL 51WORLD AND/OR ITS LICENSORS BE LIABLE FOR ANY LOST
29// REVENUES, DATA, OR PROFITS, OR SPECIAL, DIRECT, INDIRECT, OR
30// CONSEQUENTIAL DAMAGES, EVEN IF 51WORLD AND/OR ITS LICENSORS HAS
31// BEEN ADVISED OF THE POSSIBILITY OR PROBABILITY OF SUCH DAMAGES.
32// ==========================================================================
33#pragma once
34
35#include "ssdexport.h"
36#include "SimVector.h"
37
38#define SIMSTRING_SIZE 16
39
40namespace SSD {
41
42 class SSDEXPORT SimString
43 {
44 public:
45 //@brief constructor.
46 //@param s is input content value to initialize this string.
47 SimString(const char* s = nullptr);
48
49 //@brief destructor.
51
52 //@brief copy constructor.
54
55 //@brief assignment.
57
58 //@brief Get const char* value of current string.
59 const char* GetString() const;
60
61 //@brief Set content value for current string.
62 void SetString(const char* s);
63
64 bool operator== (const SimString & str) const;
65 bool operator!= (const SimString & str) const;
66 bool operator< (const SimString & str) const;
67 bool operator> (const SimString & str) const;
68 bool Empty() const;
69 sizeT Length() const;
70
71 private:
73 };
74
75 template class SSDEXPORT SSD::SimVector<SimString>;
77}
78
#define SIMSTRING_SIZE
Definition SimString.h:38
SimString & operator=(const SimString &c)
const char * GetString() const
sizeT Length() const
SimString(const char *s=nullptr)
bool Empty() const
void SetString(const char *s)
char data[SIMSTRING_SIZE]
Definition SimString.h:72
SimString(const SimString &c)
Definition SimVector.h:42
Definition SimPoint2D.h:36
unsigned long long sizeT
Definition SimVector.h:39
SSD::SimVector< SimString > SimStringVector
Definition SimString.h:76