HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_ORMMigrationState.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: UT_ORMMigrationState.h
7  *
8  * COMMENTS:
9  *
10  *
11  */
12 
13 #ifndef __UT_ORMMIGRATIONSTATE_H__
14 #define __UT_ORMMIGRATIONSTATE_H__
15 
16 #include "UT_API.h"
17 
18 #include "UT_ArrayStringMap.h"
19 #include "UT_COWValue.h"
20 #include "UT_ErrorCode.h"
21 #include "UT_Function.h"
22 #include "UT_ORMModelState.h"
23 
24 class UT_ORMModelMeta;
25 
27 {
28 public:
31 
32  bool addModel(UT_ORMModelState&& model);
33  bool deleteModel(const UT_StringRef& name);
34  void updateModel(const UT_StringRef& name, const update_func_t& update);
35  const model_t& findModel(const UT_StringRef& name) const;
36  bool renameModel(
37  const UT_StringRef& old_model,
38  const UT_StringHolder& new_model);
39 
40  bool matchesForMeta(
41  const UT_ORMModelMeta& meta,
43  UT_ErrorCode& ec) const;
44 
45 private:
47 };
48 
49 #endif // __UT_ORMMIGRATIONSTATE_H__
GLuint GLsizei const GLchar * message
Definition: glcorearb.h:2543
#define UT_API
Definition: UT_API.h:14
UT_Function< void(UT_ORMModelState &)> update_func_t
GLuint const GLchar * name
Definition: glcorearb.h:786
std::function< T > UT_Function
Definition: UT_Function.h:37
std::error_code UT_ErrorCode
Definition: UT_ErrorCode.h:20