Google APIs Client Library for C++
|
00001 /* 00002 * \copyright Copyright 2013 Google Inc. All Rights Reserved. 00003 * \license @{ 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); 00006 * you may not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 * 00017 * @} 00018 */ 00019 00020 // Author: ewiseblatt@google.com (Eric Wiseblatt) 00021 00022 #ifndef APISERVING_CLIENTS_CPP_TRANSPORT_VERSIONINFO_H_ 00023 #define APISERVING_CLIENTS_CPP_TRANSPORT_VERSIONINFO_H_ 00024 00025 #include <string> 00026 namespace googleapis { 00027 using std::string; 00028 00029 namespace client { 00030 00031 class VersionInfo { 00032 public: 00033 /* 00034 * The major version number is used for compatability purposes. 00035 */ 00036 static const int kMajorVersionNumber; 00037 00038 /* 00039 * The minor version number is used for incremental fixes and enhancements. 00040 */ 00041 static const int kMinorVersionNumber; 00042 00043 /* 00044 * The patch version number is used to patch releases. 00045 */ 00046 static const int kPatchVersionNumber; 00047 00048 /* 00049 * The version decorator is used to mark unofficial versions. The intent 00050 * is that this will be empty for official releases but something else 00051 * for builds from the head, etc. 00052 */ 00053 static const char kVersionDecorator[]; 00054 00055 /* 00056 * Returns a string with the complete version string. 00057 * 00058 * @return string in the form major.minor-decorator 00059 */ 00060 static const string GetVersionString(); 00061 00062 /* 00063 * Returns platform that we are running on 00064 */ 00065 static const string GetPlatformString(); 00066 }; 00067 00068 } // namespace client 00069 00070 } // namespace googleapis 00071 #endif // APISERVING_CLIENTS_CPP_TRANSPORT_VERSIONINFO_H_